@extends('layouts.main') @section('content')
Manage and monitor all booking records.
--}}View all counsellor appointment bookings.
| #ID | User | Counsellor | Date | Time | Status | {{--Action | --}}
|---|---|---|---|---|---|---|
| #{{ $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 | |
No Bookings FoundNo booking records available right now. |
||||||