@php $routeName = 'backend.template.order-management.index'; // 'order' and 'salad_order' are mutually-exclusive "currently selected" markers — // both must be dropped here, otherwise switching tabs while a Vital Kitchen order // is open keeps forcing that stale salad order's detail view in the new tab. $baseQuery = array_filter(request()->except(['page', 'order', 'salad_order']), fn($value) => $value !== null && $value !== ''); @endphp @foreach ($tabs as $tabKey => $tab) {{ $tab['label'] }} {{ number_format($tabCounts[$tabKey] ?? 0) }} @endforeach