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

Eligible Donors

Donors who are ready to donate (4+ months since last donation)

These donors are ready to help!

All donors listed here have waited at least 4 months since their last donation and are medically eligible to donate blood.

@forelse($users as $u)
{{ $u->blood_group }}
{{ $u->name }}
{{ $u->city ?? 'Location not set' }}
@if($u->phone_visible)
{{ auth()->user()->role === 'admin' ? $u->phone : mask_phone($u->phone) }} @if(auth()->user()->role !== 'admin') @endif
@else
Hidden by donor Request
@endif
{{ $u->last_donation_date->format('M d, Y') }}
{{ $u->last_donation_date->diffForHumans() }}
Eligible
@if($u->id !== auth()->id()) Request @else
Your Profile
@endif
@empty

No eligible donors at the moment

Check back later for donors who are ready to donate.

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