@extends('layouts.app') @section('title','Search Donors - BloodFinder') @section('content')

Find Blood Donors

Search for donors by blood group and location

@forelse($users as $u)
{{ $u->blood_group }}

{{ $u->name }}

{{ $u->city ?? 'Location not set' }}
Contact
@if($u->phone_visible)
{{ auth()->user()->role === 'admin' ? $u->phone : mask_phone($u->phone) }} @if(auth()->user()->role !== 'admin') @endif
@else
Hidden
@endif
Last Donation
{{ optional($u->last_donation_date)->format('M d, Y') ?? 'Never' }}
{{ $u->donations_count ?? 0 }} donations
@if($u->id !== auth()->id()) @else
Your Profile
@endif
@empty

No donors found

Try adjusting your search filters to find more donors.

@endforelse
@if($users->hasPages())
{{ $users->links() }}
@endif @endsection