@extends('layouts.app', [ 'title' => 'Donor Profile | Blood Donor App', 'pageHeading' => 'Donor Profile', 'pageSubheading' => 'View donor details, eligibility, and full donation history', ]) @section('content')
{{ $donor->name }}

{{ $donor->name }}

{{ $donor->blood_group }} · {{ ucfirst($donor->gender) }}
{{ $eligibility['status'] }}

Phone: {{ $donor->phone }}

Age: {{ $donor->age }}

Address: {{ $donor->address }}

Last Donation: {{ $eligibility['last_donation_date']?->format('d M Y') ?? 'No donations yet' }}

Next Eligible Date: {{ $eligibility['next_eligible_date']?->format('d M Y') ?? 'Eligible immediately' }}

Added by: {{ $donor->creator?->name ?? 'N/A' }}

Donation History

Back to Donors
@if ($donationHistory->isEmpty())

No donation history available for this donor yet.

@else
@foreach ($donationHistory as $index => $entry) @endforeach
# Donation Date Notes Recorded At
{{ $donationHistory->firstItem() + $index }} {{ $entry->donation_date?->format('d M Y') }} {{ $entry->notes ?: '—' }} {{ $entry->created_at?->format('d M Y, h:i A') }}
@endif
@if ($donationHistory->hasPages()) @endif
@endsection