@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')
{{ \Carbon\Carbon::parse($drive->start_datetime)->format('g:i A') }} - {{ \Carbon\Carbon::parse($drive->end_datetime)->format('g:i A') }}
{{ $drive->address }}
{{ $drive->bloodBank ? $drive->bloodBank->phone : '' }}
{{ $drive->description }}
{{ $drive->additional_info }}
@if($isRegistrationFull) Registration is full @else {{ $drive->capacity - $drive->registrations->where('status', 'registered')->count() }} spots remaining @endif
Your registration details:
Please check other available blood drives.
| Donor | Blood Type | Registration Date |
|---|---|---|
|
@if($reg->user->avatar)
{{ strtoupper(substr($reg->user->name, 0, 1)) }}
@endif
{{ $reg->name }} |
{{ $reg->blood_type }} | {{ \Carbon\Carbon::parse($reg->created_at)->format('M d, Y') }} |
No registered donors yet