@php $routeName = request()->route()?->getName() ?? ''; $isCashierView = str_starts_with($routeName, 'cashier.'); $isAdminView = str_starts_with($routeName, 'admin.'); $shouldShowPreloader = ! ($isCashierView || $isAdminView) && request()->routeIs('home'); $brandColor = \App\Models\StoreSetting::getValue('store.brand_color', '#F7BFA0'); $brandName = \App\Models\StoreSetting::getValue('store.name', config('app.name', "D'Shop")); $brandLogo = \App\Models\StoreSetting::getValue('store.logo', 'assets/logo-dshop.png'); $brandLogoUrl = (!empty($brandLogo) && !preg_match('/^(https?:)?\/\//', $brandLogo) && ! str_starts_with($brandLogo, 'data:')) ? asset($brandLogo) : $brandLogo; $brandTagline = \App\Models\StoreSetting::getValue('store.tagline', 'Solusi gaya dan kebutuhan UMKM Anda.'); $adminWhatsapp = \App\Models\StoreSetting::getValue('store.whatsapp_admin', '6283879865012'); @endphp {{ config('app.name', "D'Shop") }} @stack('scripts') @if ($isCashierView || request()->routeIs('home') || request()->routeIs('products.show') || $isAdminView) @endif @vite(['resources/css/app.css', 'resources/js/app.js']) @stack('scripts') @if ($shouldShowPreloader)

{{ $brandName }}

Memuat pengalaman D'Shop...

@endif
@unless ($isCashierView || $isAdminView) @include('layouts.navigation', [ 'brandColor' => $brandColor, 'brandName' => $brandName, 'brandLogo' => $brandLogoUrl, 'adminWhatsapp' => $adminWhatsapp, ]) @endunless @if (! $isCashierView && ! $isAdminView) @isset($header)
{{ $header }}
@endisset @endif
{{ $slot }}
@unless ($isCashierView || $isAdminView) @endunless