{{-- Date and Technician Selection --}}

Select Date & Technician

{{-- Date Selection --}}
{{-- Technician Selection --}}
{{-- Service Duration --}}
@if($selectedDate && \Carbon\Carbon::parse($selectedDate)->isPast() && !\Carbon\Carbon::parse($selectedDate)->isToday())

Cannot schedule appointments for past dates. Please select a future date.

@endif
{{-- Time Slots Grid --}} @if(!empty($timeSlots))

Available Time Slots

{{ \Carbon\Carbon::parse($selectedDate)->format('l, F j, Y') }}
@if($selectedSlot)
Selected: {{ \Carbon\Carbon::parse($selectedDate . ' ' . $selectedSlot)->format('g:i A') }}
@endif
{{-- Legend --}}
Available
Booked
Unavailable
Selected
{{-- Time Slots Grid --}}
@foreach($timeSlots as $slot) @php $slotStatus = $this->getSlotStatus($slot['time']); $isSelected = $this->isSlotSelected($slot['time']); @endphp
@if($slotStatus['status'] === 'available') @elseif($slotStatus['status'] === 'booked')
{{ $slot['label'] }}
{{ $slotStatus['data']['customer_name'] ?? 'Booked' }}
{{-- Tooltip for booked slot --}} @if($slotStatus['data']) @endif @else
{{ $slot['label'] }}
Unavailable
@endif
@endforeach
{{-- No available slots message --}} @if(empty($availableSlots))

No Available Slots

All time slots are booked for this date @if($selectedTechnician) and technician @endif .

@if($nextAvailableDate) @else

No availability found in the next 30 days.

@endif
@endif
{{-- Business Hours Info --}}

Business Hours

Monday - Friday: {{ \Carbon\Carbon::parse($businessStart)->format('g:i A') }} - {{ \Carbon\Carbon::parse($businessEnd)->format('g:i A') }}

Lunch Break: {{ \Carbon\Carbon::parse($lunchStart)->format('g:i A') }} - {{ \Carbon\Carbon::parse($lunchEnd)->format('g:i A') }}

Time slots are available in {{ $slotInterval }}-minute intervals.

@else {{-- No slots for selected date --}}

Select a Date

Choose a date to view available time slots.

@endif
@script @endscript