@extends('front_end.layouts.home') @php $showRightSidebar = false; @endphp @section('title', 'Blood Drive Details') @section('left_sidebar') @include('front_end.pages.bloodbank.bloodbank_left_sidebar') @endsection @section('content')

Blood Drive Details

View detailed information about this blood drive

{{ $drive->title }}
@php $isPast = \Carbon\Carbon::parse($drive->end_datetime)->isPast(); $isRegistrationFull = $drive->isRegistrationFull(); @endphp
{{ \Carbon\Carbon::parse($drive->start_datetime)->format('l, F d, Y') }}

{{ \Carbon\Carbon::parse($drive->start_datetime)->format('g:i A') }} - {{ \Carbon\Carbon::parse($drive->end_datetime)->format('g:i A') }}

{{ $drive->location }}

{{ $drive->address }}

Organized by {{ $drive->bloodBank ? $drive->bloodBank->name : 'Unknown Blood Bank' }}

{{ $drive->bloodBank ? $drive->bloodBank->phone : '' }}

@if($drive->description)
About this Blood Drive

{{ $drive->description }}

@endif @if($drive->requirements)
Eligibility Requirements
{!! nl2br(e($drive->requirements)) !!}
@endif @if($drive->additional_info)
Additional Information

{{ $drive->additional_info }}

@endif @if(!$drive->requirements)
General Eligibility Requirements
  • Must be between 17-65 years old
  • Weight at least 50kg (110 lbs)
  • In good health condition
  • No alcohol consumption within 24 hours before donation
  • No tattoos or piercings within the last 3 months
  • Not donated blood in the last 56 days (8 weeks)
  • Had adequate sleep and meals before donation
@endif @if($drive->latitude && $drive->longitude)
Location
@endif
Registration
@if($isPast)
This blood drive has ended
@else
Capacity
{{ $drive->registrations->where('status', 'registered')->count() }}/{{ $drive->capacity }}

@if($isRegistrationFull) Registration is full @else {{ $drive->capacity - $drive->registrations->where('status', 'registered')->count() }} spots remaining @endif

@if($isRegistered)
You are registered for this blood drive

Your registration details:

{{ Auth::user()->name }}
Blood Type: {{ Auth::user()->blood_type }}
Registered: {{ \Carbon\Carbon::parse($registration->created_at)->format('M d, Y, g:i A') }}
@else @if(!$isRegistrationFull) @auth @else Login to Register @endauth @else
Registration is full

Please check other available blood drives.

@endif @endif
{{ \Carbon\Carbon::parse($drive->start_datetime)->diffForHumans() }} ({{ \Carbon\Carbon::parse($drive->start_datetime)->format('l, F d') }})
@endif
@if($drive->show_donor_list)
Registered Donors
{{ $drive->registrations->where('status', 'registered')->count() }} donors
@if($drive->registrations->where('status', 'registered')->count() > 0)
@foreach($drive->registrations->where('status', 'registered')->sortByDesc('created_at') as $reg) @endforeach
Donor Blood Type Registration Date
@if($reg->user->avatar) {{ $reg->user->name }} @else
{{ strtoupper(substr($reg->user->name, 0, 1)) }}
@endif

{{ $reg->name }}

{{ $reg->blood_type }} {{ \Carbon\Carbon::parse($reg->created_at)->format('M d, Y') }}
@else

No registered donors yet

@endif
@endif
Share this Blood Drive

Help spread the word and invite more donors to this blood drive!

Similar Blood Drives
Loading...
Loading similar blood drives...
@endsection @section('extra-js') @endsection