@extends('layouts.main') @section('content')
{{--

All Bookings

--}} {{--

Manage and monitor all booking records.

--}}
{{ $bookings->count() }} Total Bookings
Booking List

View all counsellor appointment bookings.

{{-- --}} @forelse($bookings as $b) @empty @endforelse
#ID User Counsellor Date Time StatusAction
#{{ $b->id }}
{{ strtoupper(substr($b->user->first_name ?? 'G',0,1)) }}
{{ $b->user->first_name ?? 'Guest' }}
{{ $b->user->email ?? 'No Email' }}
{{ strtoupper(substr(optional($b->counsellor)->first_name ?? 'C',0,1)) }}
{{ optional($b->counsellor)->first_name ?? 'N/A' }}
Counsellor
{{ \Carbon\Carbon::parse($b->date)->format('d M Y') }}
{{ \Carbon\Carbon::parse($b->date)->format('l') }}
{{ \Carbon\Carbon::parse($b->start_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($b->end_time)->format('h:i A') }} @if($b->status == 'pending') Pending @elseif($b->status == 'confirmed') Confirmed @elseif($b->status == 'cancelled') Cancelled @else {{ ucfirst($b->status) }} @endif
{{-- --}} {{--
@csrf @method('DELETE')
--}}
No Bookings Found

No booking records available right now.

@endsection