{{-- Change delivery slot / address (admin). Shared by the grocery and Vital Kitchen order panes. Expects: $action (PATCH url), $currentAddress (array), $userAddresses (collection|null). Only rendered while the order is still editable (before packing / preparing). Plain
, no JS — the detail pane is swapped in by fetch(), so nothing here may depend on scripts bound at page load. --}} @php $scheduleService = app(\App\Services\DeliveryScheduleService::class); $editSlots = $scheduleService->slots(); @endphp
Change slot / address
@csrf @method('PATCH')
Delivery slot (leave blank to keep the current one)
Delivery address (leave blank to keep the current one)
@if (isset($userAddresses) && $userAddresses->isNotEmpty())
…or type a new one below (a saved address, if picked, wins).
@endif
Current: {{ $currentAddress['line'] ?? '-' }}