@hasrole('Admin') @php $restaurant_id = auth()->user()->getRestaurantData()->id; $location_id = auth()->user()->getRestaurantPrimaryLocation()->id; @endphp @endhasrole @hasanyrole('BranchOwner|BranchManager|BranchStaffManager') @php $location = auth()->user()->getLocationUserData(); $location_id = $location->id; $restaurant_id = $location->restaurant_id; @endphp @endhasanyrole @php /*if( auth()->user()->getRestaurantData() ) { $restaurant_id = auth()->user()->getRestaurantData()->id; $location_id = auth()->user()->getRestaurantPrimaryLocation()->id; } else if( auth()->user()->getLocationUserData() ) { $location = auth()->user()->getLocationUserData(); $location_id = $location->id; $restaurant_id = $location->restaurant_id; }*/ @endphp {{ config('app.name', 'Eaterli') }} {{----}} @include('layouts.include.react-app')
@yield('content')
@yield('script')