@vite(['resources/css/app.css', 'resources/js/app.js'])
@php $draftBadgeCount = 0; try { if (\Illuminate\Support\Facades\Schema::hasTable('products')) { $draftBadgeCount = \App\Models\Product::where('status', 'draft')->count(); } } catch (\Throwable $e) { $draftBadgeCount = 0; } $unreadCommCount = 0; try { if (\Illuminate\Support\Facades\Schema::hasTable('communications')) { $unreadCommCount = \App\Models\Communication::where('status', 'new')->count(); } } catch (\Throwable $e) { $unreadCommCount = 0; } $isCatalogActive = request()->routeIs(['admin.products.*', 'admin.makerworld.*', 'admin.categories.*']); $isRelationsActive = request()->routeIs(['admin.communications.*', 'admin.customers.*']); @endphp
@php $isShopOffline = false; try { if (\Illuminate\Support\Facades\Schema::hasTable('settings')) { $isShopOffline = \App\Models\Setting::get('shop_offline', '0') === '1'; } } catch (\Throwable $e) { $isShopOffline = false; } @endphp
@csrf @if($isShopOffline) @else @endif
Content & Layout Layout & Teksten
Assortiment
Verkoop & Klanten
@if(!empty($isShopOffline))
De webshop staat momenteel OFFLINE voor bezoekers (rode onderhoudsbanner actief). Alleen jij als beheerder kunt de website bezoeken.
@csrf
@endif
@if(session('success'))
{{ session('success') }}
Bekijk Live Shop
@endif @if(session('warning'))
{{ session('warning') }}
@endif @if(session('info'))
{{ session('info') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @yield('content')