@extends('layouts.app') @section('head') {{-- Kitchen wall-tablet board: kept live by a JS auto-refresh (the orderFeed Alpine component at the bottom of the feed) instead of , so the reload PAUSES while an order card is expanded. location.reload() is still a full page load, so the new-order overlay keeps working against localStorage. --}} @endsection @section('styles') @endsection @section('content') @php $latestPlatform = $latest ? config('delivery.platforms.' . ($latest->integration?->tool ?? ''), []) : []; $latestDisplay = $latest ? (data_get($latest->payload, 'display_id') ?: ('#' . substr($latest->order_id, 0, 8))) : ''; $branchNote = session('selected_pos_note') ?: (session('selected_pos_service_id') ? __('Selected business') : __('No business selected')); // Compact money formatter (mirrors orders/show) for the expanded card content. $money = fn($m) => is_array($m) ? ($m['formatted_amount'] ?? (isset($m['amount']) ? number_format(((int) $m['amount']) / 100, 2) . ' ' . ($m['currency_code'] ?? '') : '-')) : '-'; @endphp
{{ $branchNote }} · {{ __('All integrations') }} · {{ $isHistory ? __('Older than 60 minutes') : __('Last 60 minutes') }} @if ($isHistory) · {{ __($activeStatus) }} @endif
{{-- LIVE ORDER FEED (single column, large type, click-to-expand accordion) --}}“{{ data_get($item, 'special_instructions') }}”
@endif @foreach (data_get($item, 'selected_modifier_groups') ?? [] as $group) @php $selected = data_get($group, 'selected_items') ?? []; @endphp @if (count($selected) > 0){{ data_get($group, 'title') }}: {{ collect($selected)->map(fn($s) => trim((data_get($s, 'title') ?? '') . (data_get($s, 'quantity', 1) > 1 ? ' ×' . data_get($s, 'quantity') : '')))->filter()->implode(', ') }}
@endif @endforeach{{ __('No cart detail — the order may not be enriched (raw webhook payload).') }}
@endif{!! __('This order is in :status state — accept/deny cannot be applied.', ['status' => '' . e(__($stateUpper)) . '']) !!}
@endif open_in_new {{ __('View details') }} print {{ __('Print') }}{{ __('No orders match this filter.') }}
{{ !session('selected_pos_service_id') ? __('Select a business first.') : ($isHistory ? __('Older than 60 minutes') : __('New orders will appear here live.')) }}