@extends('frontend.layouts.app') @section('title', 'Digital Blood Hub - Request Blood') @section('content')

Request Blood

@include('frontend.layouts.include.message') @if ($bloodRequests->isNotEmpty()) @foreach ($bloodRequests as $data) {{--
Product Image
{{ $data->contact_person_name }}
Patient Name:
{{ $data->patient_name }}
@if (@$data->acceptedRequests[0]->status == 'accepted')
Contact 1:
{{ $data->contact1 }}
@if ($data->contact2)
Contact 2:
{{ $data->contact2 }}
@endif @else
@endif
Required Blood Group:
{{ $data->bloodGroup->name }}
Urgent:
{{ $data->emergency }}
@if (@$data->acceptedRequests[0]->status !== 'accepted') @else @endif
--}}
{{ $data->hospital->name }}

{{ $data->emergency == 'yes' ? 'Emergency' : 'Voluntary ' }}

Detail

Name:{{ $data->patient_name }}

Blood Group: {{ $data->bloodGroup->name }}

City: {{ $data->city->name }}

@if (@$data->acceptedRequests[0]->status == 'accepted')

Contact: {{ $data->contact1 }}

@endif @if ($data->contact2)

Contact 2: {{ $data->contact2 }}

@endif
@endforeach
{{ $bloodRequests->links('vendor.pagination.bootstrap-5') }}
@else @endif
@endsection @section('customJs') @endsection