with(MobileTopbar::resolve()); }); // Expose whether the signed-in account runs in restaurant mode so the // sidebar can surface the Floor + Kitchen nav only when relevant. View::composer('partials.sidebar', function ($view) { $restaurant = false; if ($account = ladill_account()) { $restaurant = PosLocation::owned((string) $account->public_id) ->where('service_style', PosLocation::STYLE_RESTAURANT) ->exists(); } $view->with('posRestaurant', $restaurant); }); } }