@php $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [] ); @endphp @extends('admin.layouts.layout', $headerOption) @section('content')

Appointment Board

{{-- Week navigation + filters --}}
Week of {{ $weekDates[0]->format('D M j, Y') }}
{{-- Weekly appointments grid --}}

Appointments for Current Week

@foreach($weekDates as $d) @endforeach @foreach($weekDates as $d) @endforeach @forelse($gridData as $uid => $userData) @php $rowTotals = ['conf'=>0,'res'=>0,'seen'=>0,'set'=>0]; @endphp @foreach($weekDates as $d) @php $dayData = $userData['days'][$d->format('Y-m-d')] ?? ['conf'=>0,'res'=>0,'seen'=>0,'set'=>0]; $rowTotals['conf'] += $dayData['conf']; $rowTotals['res'] += $dayData['res']; $rowTotals['seen'] += $dayData['seen']; $rowTotals['set'] += $dayData['set']; @endphp @endforeach @empty @endforelse @php $grandTotals = ['conf'=>0,'res'=>0,'seen'=>0,'set'=>0]; @endphp @foreach($weekDates as $d) @php $t = $totals[$d->format('Y-m-d')] ?? ['conf'=>0,'res'=>0,'seen'=>0,'set'=>0]; $grandTotals['conf'] += $t['conf']; $grandTotals['res'] += $t['res']; $grandTotals['seen'] += $t['seen']; $grandTotals['set'] += $t['set']; @endphp @endforeach
Users{{ $d->format('D M j') }}Totals
Conf. Res. Seen SetConf. Res. Seen Set
{{ $userData['name'] }}{{ $dayData['conf'] ?: '–' }} {{ $dayData['res'] ?: '–' }} {{ $dayData['seen'] ?: '–' }} {{ $dayData['set'] ?: '–' }}{{ $rowTotals['conf'] ?: '–' }} {{ $rowTotals['res'] ?: '–' }} {{ $rowTotals['seen'] ?: '–' }} {{ $rowTotals['set'] ?: '–' }}
No appointments found for this week.
Totals{{ $t['conf'] ?: '–' }} {{ $t['res'] ?: '–' }} {{ $t['seen'] ?: '–' }} {{ $t['set'] ?: '–' }}{{ $grandTotals['conf'] ?: '–' }} {{ $grandTotals['res'] ?: '–' }} {{ $grandTotals['seen'] ?: '–' }} {{ $grandTotals['set'] ?: '–' }}
{{-- Merchants Approved chart --}}
Merchants Approved in {{ now()->format('F Y') }}

No approved merchants this month.

@endsection @push('page_script') @endpush