@extends('admin.dashboard.layouts.app') @section('main')

Clinic Wise Appointments for {{ $today }}

{{-- Debug: Show what data we actually have --}}
Debug Info:
{{ print_r($clinics->toArray(), true) }}
Today variations tried:
{{ print_r([
                            now()->format('d M (D)'),
                            strtoupper(now()->format('d M (D)')),
                            now()->format('j M (D)'),
                            strtoupper(now()->format('j M (D)'))
                        ], true) }}
@if($clinics->count() > 0)
@foreach($clinics as $clinic) @endforeach
Clinic Name Today's Appointments Action
{{ $clinic->organization_name ?? 'N/A' }} {{ $clinic->total }} View Appointments
@else
No appointments found for today ({{ $today }}). {{-- Show what dates are available for debugging --}} @if(isset($allAppointments))
Available dates in database:
@foreach($allAppointments->pluck('selected_date')->unique() as $availableDate) {{ $availableDate }} @endforeach
@endif
@endif
@endsection