@extends('admin.layout') @section('content')
Time slots
Add
@foreach ($slots as $slot) @endforeach
Day Label Time Active Actions
{{ ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][$slot->day_of_week] ?? $slot->day_of_week }} {{ $slot->label }} {{ $slot->start_time }} - {{ $slot->end_time }} {{ $slot->is_active ? 'Yes' : 'No' }}
Edit
@csrf @method('DELETE')
{{ $slots->links() }}
@endsection