{{-- Filter Bar --}}
{{-- Search --}} {{-- Space Use --}} {{-- Accepting --}} {{-- Availability Picker --}}
@foreach (['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] as $day)

{{ ucfirst($day) }}

@foreach (['morning' => 'AM', 'afternoon' => 'PM', 'evening' => 'EVE'] as $slot => $abbr) @php $key = "{$day}-{$slot}"; @endphp @endforeach
@endforeach
{{-- Copy Emails --}}
{{-- Active Availability Chips --}} @if (count($filterAvailability) > 0)
@foreach ($filterAvailability as $slot) @php [$day, $time] = explode('-', $slot); $abbr = match($time) { 'morning' => 'AM', 'afternoon' => 'PM', 'evening' => 'EVE', default => $time }; @endphp {{ ucfirst($day) }} {{ $abbr }} @endforeach
@endif
{{-- Roster Table --}}
@php $sortableHeaders = [ 'name' => 'Name', 'space_use' => 'Space Use', ]; @endphp @foreach ($sortableHeaders as $field => $label) @endforeach @forelse ($clinicians as $clinician) @php $profile = $clinician->user?->clinicianProfile; $availability = $clinician->weekly_availability ?? []; $dayAbbr = ['monday'=>'Mon','tuesday'=>'Tue','wednesday'=>'Wed','thursday'=>'Thu','friday'=>'Fri','saturday'=>'Sat','sunday'=>'Sun']; $slotAbbr = ['morning'=>'AM','afternoon'=>'PM','evening'=>'EVE']; @endphp @empty @endforelse
{{ $label }} @if ($sortField === $field) {{ $sortDirection === 'asc' ? '▲' : '▼' }} @endif Email Phone Availability In-Person Virtual Insurance
{{ $clinician->user?->full_name ?? '—' }} {{ $clinician->space_use?->label() ?? '—' }} {{ $clinician->user?->email ?? '—' }} @if ($clinician->hide_phone_number) @else {{ $clinician->user?->phone ?? '—' }} @endif @if (empty($availability)) @else
@foreach ($availability as $day => $slots) {{ $dayAbbr[$day] ?? ucfirst($day) }} {{ collect($slots)->map(fn ($s) => $slotAbbr[$s] ?? $s)->implode('/') }} @endforeach
@endif
@if ($profile?->accepting_inperson) @else @endif @if ($profile?->accepting_virtual) @else @endif @if ($profile?->insurance_accepted)
@foreach ($profile->insurance_accepted as $payer) {{ $payer }} @endforeach
@else @endif
No clinicians found.