@php $layoutShop = \Modules\DigitalMenu\Entities\Shop::find(session('shop_id')); $layoutShopTemplateData = $layoutShop ? json_decode($layoutShop->template_data ?? '{}', true) : []; $layoutShopType = $layoutShopTemplateData['shop_type'] ?? 'food'; $layoutShopLogoUrl = ($layoutShop && $layoutShop->logo) ? config('global.s3_path') . 'shop/' . $layoutShop->logo : null; $layoutAuthUser = Auth::guard('staff')->user(); $layoutStaff = $layoutAuthUser ? \Modules\DigitalMenu\Entities\Staff::find($layoutAuthUser->id) : null; $layoutStaffPictureUrl = ($layoutStaff && $layoutStaff->picture_url) ? $layoutStaff->picture_url : null; @endphp @yield('title', ($layoutShop->name ?? 'Digital Menu') . ' | Merchant Central') @yield('styles')
@if ($layoutShopLogoUrl)
{{ $layoutShop->name }}
@else
{{ $layoutShopType === 'food' ? 'restaurant_menu' : 'storefront' }}
@endif

Merchant Central

{{ $layoutShop->name ?? 'Digital Menu' }}

@if (Auth::guard('staff')->check())
@if ($layoutStaffPictureUrl) Profile @else person @endif
@else
person
@endif
@if (session('message')) @if (session('message')['success'])
check_circle {{ session('message')['message'] }}
@else
error {{ session('message')['message'] }}
@endif @endif @yield('content')
@yield('scripts') @if (Auth::guard('staff')->check()) @endif