@php $directory = app()->getLocale() == 'ar' ? 'rtl' : 'ltr'; @endphp {{ $generaleSetting?->title ?? config('app.name', 'Laravel') }} @stack('css')

@yield('header-title')

@yield('header-subtitle')

@if ($businessModel == 'multi') @php $user = auth()->user(); $isShop = true; if (!$user->hasRole('root') && ($user->shop || $user->myShop)) { $isShop = false; } @endphp @endif
@hasPermission(['admin.dashboard.notification', 'shop.dashboard.notification']) @endhasPermission
@include('layouts.sidebar')
@if ($seederRun) @endif @if ($storageLink) @endif @if (request()->subscription_required && !request()->routeIs('shop.subscription.index')) @if (!request()->current_subscription) @endif @if (request()->current_subscription && !request()->subscription_expired && request()->current_subscription->remaining_sales === 0) @endif @if (request()->subscription_about_to_expire) @endif @if (request()->subscription_expired) @endif @endif @yield('content')
@if (!$generaleSetting || $generaleSetting?->show_footer) @endif
@php $action = request()->is('admin/*', 'admin') ? route('admin.logout') : route('shop.logout'); @endphp
@csrf
@if (request()->is('admin/*', 'admin')) @hasPermission('admin.dashboard.notification') @endhasPermission @else @hasPermission('shop.dashboard.notification') @endhasPermission @endif @stack('scripts') @if (session('success')) @endif @if (session('error')) @endif @if (session('demoMode')) @endif @if (session('alertError')) @endif