@yield('content')
@include('partials.theme-bootstrap') @vite(['resources/css/app.css', 'resources/js/theme.js', 'resources/js/app.js'])
@php $navGroups = [ 'Workspace' => [ [ 'route' => 'admin.dashboard', 'pattern' => 'admin.dashboard', 'label' => 'Dashboard', 'icon' => 'grid', ], [ 'route' => 'admin.orders.needs-action', 'pattern' => 'admin.orders.needs-action', 'label' => 'Perlu Diproses', 'icon' => 'alert', ], [ 'route' => 'admin.orders.index', 'pattern' => 'admin.orders.*', 'exclude' => 'admin.orders.needs-action', 'label' => 'Order', 'icon' => 'receipt', ], ], 'Katalog & Inventory' => [ [ 'route' => 'admin.products.index', 'pattern' => 'admin.products.*', 'label' => 'Produk', 'icon' => 'box', ], [ 'route' => 'admin.categories.index', 'pattern' => 'admin.categories.*', 'label' => 'Kategori', 'icon' => 'tag', ], [ 'route' => 'admin.stock.all', 'pattern' => 'admin.stock.*', 'label' => 'Stok', 'icon' => 'layers', ], [ 'route' => 'admin.vouchers.index', 'pattern' => 'admin.vouchers.*', 'label' => 'Voucher', 'icon' => 'ticket', ], ], 'Sistem' => [ [ 'route' => 'admin.activity-logs.index', 'pattern' => 'admin.activity-logs.*', 'label' => 'Log Aktivitas', 'icon' => 'clock', ], ], ]; $settingsItems = [ [ 'route' => 'admin.settings.edit', 'pattern' => 'admin.settings.edit', 'label' => 'Payment Gateway', 'icon' => 'key', ], [ 'route' => 'admin.settings.maintenance.edit', 'pattern' => 'admin.settings.maintenance.*', 'label' => 'Maintenance Mode', 'icon' => 'maintenance', ], [ 'route' => 'admin.settings.accounts.index', 'pattern' => 'admin.settings.accounts.*', 'label' => 'Account', 'icon' => 'account', ], ]; $settingsActive = request()->routeIs('admin.settings.*'); $icons = [ 'grid' => 'M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z', 'alert' => 'M12 9v4m0 4h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z', 'receipt' => 'M6 3h12v18l-3-2-3 2-3-2-3 2V3Zm3 5h6M9 11h6', 'box' => 'M21 8 12 3 3 8m18 0-9 5m9-5v9l-9 5m0-9L3 8m9 5v9M3 8v9l9 5', 'tag' => 'M20.59 13.41 11 3.83A2 2 0 0 0 9.59 3.24L3.24 9.59A2 2 0 0 0 3.83 11l9.58 9.59a2 2 0 0 0 2.83 0l4.35-4.35a2 2 0 0 0 0-2.83ZM7 7h.01', 'layers' => 'm12 2 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5m-18 5 9 5 9-5', 'ticket' => 'M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 1 0 0 4v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2a2 2 0 1 0 0-4V7Z', 'clock' => 'M12 6v6l4 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z', 'settings' => 'M10.32 4.32a1.98 1.98 0 0 1 3.36 0l.4.65a1.98 1.98 0 0 0 2.09.93l.75-.16a1.98 1.98 0 0 1 2.33 2.33l-.16.75a1.98 1.98 0 0 0 .93 2.09l.65.4a1.98 1.98 0 0 1 0 3.36l-.65.4a1.98 1.98 0 0 0-.93 2.09l.16.75a1.98 1.98 0 0 1-2.33 2.33l-.75-.16a1.98 1.98 0 0 0-2.09.93l-.4.65a1.98 1.98 0 0 1-3.36 0l-.4-.65a1.98 1.98 0 0 0-2.09-.93l-.75.16a1.98 1.98 0 0 1-2.33-2.33l.16-.75a1.98 1.98 0 0 0-.93-2.09l-.65-.4a1.98 1.98 0 0 1 0-3.36l.65-.4a1.98 1.98 0 0 0 .93-2.09l-.16-.75a1.98 1.98 0 0 1 2.33-2.33l.75.16a1.98 1.98 0 0 0 2.09-.93l.4-.65ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z', 'key' => 'M15 7a4 4 0 1 1-1.17 2.83L21 17v3h-3v-2h-2v-2h-2.17l-1.66-1.66', 'maintenance' => 'M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18v3h3l6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-3-3 2.4-2.4Z', 'account' => 'M15 19a6 6 0 0 0-12 0m6-8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9-4v6m3-3h-6', ]; @endphp {{-- Mobile drawer --}} @stack('scripts')