{{-- Add Availability --}}
{{-- List --}}
Availability List
| ID |
Doctor |
Date |
Time |
Slot |
Status |
Action |
@foreach($availabilities as $item)
{{-- Doctor Header --}}
|
Dr. {{ $item->consultant->first_name ?? '' }}
| {{ \Carbon\Carbon::parse($item->available_date)->format('d M Y') }}
|
{{-- Booking List --}}
@foreach($bookings->where('consultant_id', $item->consultant_id) as $booking)
| {{ $booking->id }} |
{{ $booking->user->first_name ?? '' }}
{{ $booking->user->last_name ?? '' }}
|
{{ \Carbon\Carbon::parse($booking->appointment_date)->format('d M Y') }} |
{{ date('h:i A', strtotime($booking->start_time)) }} -
{{ date('h:i A', strtotime($booking->end_time)) }}
|
₹ {{ $booking->amount }} |
{{ ucfirst($booking->booking_status) }} |
|
@endforeach
@endforeach