@extends('backend.template.layouts.template-base') @section('title', 'Delivery Slots | ' . config('app.name')) @section('styles') @include('backend.template.salad-management.styles') @endsection @section('content') @php // The customer-facing picker groups slots by `group_name` in this exact // order, so previewing it here is the fastest way for an admin to see // what a change will actually look like at checkout. $preview = $slots->where('status', 'active')->groupBy('group_name'); @endphp

Delivery Slots

Time windows customers can pick at checkout — used by groceries, Vital Kitchen and the mobile app.

@unless ($scheduledDeliveryEnabled)
Scheduled delivery is turned off. These slots are saved but customers can't pick them yet. Turn it on under Order Settings.
@endunless @if ($errors->any())
Please check the form: {{ $errors->first() }}
@endif

Configured Slots

Drag-free ordering: the lower the sort order, the higher the slot appears at checkout.
@forelse ($slots as $slot) @empty @endforelse
Order Group Heading Time Window Internal Name Closes Before Status Action
{{ $slot->sort_order }} {{ $slot->group_name }} {{ $slot->displayLabel() }} {{ $slot->name ?: '-' }} @if ($slot->lead_time_minutes > 0) {{ $slot->lead_time_minutes }} min @else No buffer @endif {{ ucfirst($slot->status) }}
@csrf @method('DELETE')
No delivery slots yet. Add one to let customers schedule their order.
@if ($preview->isNotEmpty())

Customer Preview

How the slot picker will look at checkout.
@foreach ($preview as $groupName => $groupSlots)

{{ $groupName }}

@foreach ($groupSlots as $slot) {{ $slot->displayLabel() }} @endforeach
@endforeach
@endif
@endsection @section('scripts') @endsection