@php $routeName = 'backend.template.order-management.index'; // 'order' and 'salad_order' are mutually-exclusive "currently selected" markers — // both must be dropped here, otherwise clicking a grocery order card while a Vital // Kitchen order is open keeps the stale salad_order param alive in the new URL, // and the controller re-shows the salad detail view instead of the clicked order. $baseQuery = array_filter(request()->except(['page', 'order', 'salad_order']), fn($value) => $value !== null && $value !== ''); @endphp