@extends('admin.layouts.app') .nav-tabs .nav-link.active { background-color: #dc3545 !important; color: #fff !important; border-radius: 20px; font-weight: bold; } @push('title') Request History @endpush @section('content')

Request History

@if($requests->count())
@foreach($requests as $item)
Donor: {{ $item->donor->name ?? 'N/A' }}
  • Phone: {{ $item->donor->phone ?? 'N/A' }}

Patient Information
  • Name: {{ $item->requestBlood->patient_name ?? 'N/A' }}
  • Gender: {{ ucfirst($item->requestBlood->gender ?? 'N/A') }}
  • Blood Group: {{ $item->requestBlood->bloodGroup->name ?? 'N/A' }}
  • Contact Number: {{ $item->requestBlood->contact1 ?? 'N/A' }}
Status: @if($item->status == 'accepted') Accepted @elseif($item->status == 'rejected') Rejected @else Pending @endif
{{ $item->created_at->format('d M Y, h:i A') }}
@endforeach
@else
No records found.
@endif
@endsection