@stack('meta')
{{-- Announcement bar --}}
✦
توصيل سريع • ضمان معتمد • تركيب احترافي
@if(!empty($settings['phone']))
{{ $settings['phone'] }}
@endif @auth
حسابي
@else
تسجيل الدخول
@endauth
{{-- Header --}}
{{ $settings['site_name'] ?? 'مؤسسة العساكر' }}
للأجهزة الكهربائية والتكييف
{{ collect(session('cart', []))->sum('qty') }}
{{-- Mobile search --}}
{{-- Categories nav (desktop) --}}
كل المنتجات
@foreach(\App\Models\Category::where('is_active', true)->where('show_in_menu', true)->whereNull('parent_id')->orderBy('sort_order')->take(8)->get() as $navCat)
{{ $navCat->name }}
@endforeach
طلب صيانة
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@yield('content')
{{-- Footer --}} {{-- Spacer so fixed bottom bar never hides content on mobile --}}
{{-- Mobile bottom navigation + categories drawer (role-aware) --}} @php $me = auth()->user(); $rn = $me && $me->role ? $me->role->name : null; $cartCount = collect(session('cart', []))->sum('qty'); $navCats = \App\Models\Category::where('is_active', true)->whereNull('parent_id')->orderBy('sort_order')->take(12)->get(); if (!$me) { $slot4 = ['label' => 'صيانة', 'href' => route('service.create'), 'icon' => 'wrench', 'active' => request()->routeIs('service.*')]; $slot5 = ['label' => 'دخول', 'href' => route('login'), 'icon' => 'login', 'active' => request()->routeIs('login')]; } elseif (in_array($rn, ['super_admin', 'admin', 'manager'], true)) { $slot4 = ['label' => 'الطلبات', 'href' => route('admin.orders.index'), 'icon' => 'orders', 'active' => false]; $slot5 = ['label' => 'الإدارة', 'href' => route('admin.dashboard'), 'icon' => 'dashboard', 'active' => false]; } elseif ($rn === 'technician') { $slot4 = ['label' => 'مهامي', 'href' => route('technician.requests'), 'icon' => 'wrench', 'active' => false]; $slot5 = ['label' => 'لوحتي', 'href' => route('technician.dashboard'), 'icon' => 'dashboard', 'active' => false]; } elseif ($rn === 'shipping') { $slot4 = ['label' => 'الشحنات', 'href' => route('shipping.orders'), 'icon' => 'orders', 'active' => false]; $slot5 = ['label' => 'لوحتي', 'href' => route('shipping.dashboard'), 'icon' => 'dashboard', 'active' => false]; } else { $slot4 = ['label' => 'طلباتي', 'href' => route('account.orders.index'), 'icon' => 'orders', 'active' => request()->routeIs('account.orders.*')]; $slot5 = ['label' => 'حسابي', 'href' => route('account.dashboard'), 'icon' => 'user', 'active' => request()->routeIs('account.dashboard') || request()->routeIs('account.profile.*')]; } $ic = [ 'home' => 'M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L22.28 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75', 'grid' => 'M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z', 'orders' => 'M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zM3.75 12h.007v.008H3.75V12zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm-.375 5.25h.007v.008H3.75v-.008zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z', 'user' => 'M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z', 'wrench' => 'M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75 3.75 2.25 7.5 4.5v1.409l4.26 4.26', 'login' => 'M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9', 'dashboard' => 'M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z', ]; ?>
تسوّق حسب القسم
كل المنتجات
طلب صيانة وتركيب
الرئيسية
الأقسام
السلة