{{-- Admin Sidebar Configuration پیکربندی سایدبار برای بخش Admin --}} @php $adminConfig = [ 'title' => 'مدیریت سیستم', 'logo' => '🏢', 'sections' => [ 'dashboard' => [ 'enabled' => true, 'active' => request()->routeIs('dashboard') ], 'system_management' => [ 'enabled' => true, 'modules' => [ 'products' => [ 'route' => 'products.index', 'label' => 'محصولات', 'icon' => '📦', 'color' => 'green', 'permission' => 'view products' ], 'suppliers' => [ 'route' => 'suppliers.index', 'label' => 'تامین‌کنندگان', 'icon' => '🏢', 'color' => 'purple', 'permission' => 'view suppliers' ], 'users' => [ 'route' => 'users.index', 'label' => 'کاربران', 'icon' => '👥', 'color' => 'orange', 'permission' => 'view users' ], 'samples' => [ 'route' => 'samples.index', 'label' => 'نمونه‌ها', 'icon' => '🧪', 'color' => 'yellow', 'permission' => 'view samples' ], 'inventory' => [ 'route' => 'inventory.index', 'label' => 'موجودی', 'icon' => '📊', 'color' => 'blue', 'permission' => 'view inventory' ], 'purchase_orders' => [ 'route' => 'purchase_orders.index', 'label' => 'سفارشات خرید', 'icon' => '📋', 'color' => 'red', 'permission' => 'view purchase_orders' ], 'purchase_requests' => [ 'route' => 'admin.purchase-requests.index', 'label' => 'درخواست‌های خرید', 'icon' => '🛒', 'color' => 'green', 'permission' => 'view purchase_requests', 'submenu' => [ 'id' => 'purchase-requests-submenu', 'active' => request()->routeIs('admin.purchase-requests.*'), 'items' => [ [ 'route' => 'price.inquiry', 'label' => 'ایجاد استعلام قیمت', 'icon' => '💰', 'active' => request()->is('admin/price-inquiry') && !request()->is('admin/price-inquiry/list') ], [ 'route' => 'price.inquiry.list', 'label' => 'لیست استعلام قیمت', 'icon' => '📋', 'active' => request()->is('admin/price-inquiry/list') ], [ 'route' => 'admin.purchase-requests.create', 'label' => 'افزودن درخواست خرید', 'icon' => '➕' ], [ 'route' => 'admin.pr.list', 'label' => 'لیست درخواست خرید', 'icon' => '📋' ], [ 'route' => 'admin.pr.sales', 'label' => 'درخواست تیم فروش', 'icon' => '🛒' ] ] ] ], 'accounting' => [ 'route' => 'admin.accounting.transactions', 'label' => 'حسابداری', 'icon' => '💳', 'color' => 'yellow', 'permission' => 'view accounting', 'submenu' => [ 'id' => 'accounting-submenu', 'active' => request()->routeIs('admin.accounting.*'), 'items' => [ [ 'route' => 'admin.accounting.transactions', 'label' => 'لیست تراکنش ها', 'icon' => '📄' ], [ 'route' => 'admin.accounting.suppliers', 'label' => 'لیست تامین کننده ها', 'icon' => '🏢' ], [ 'route' => 'admin.accounting.invoices.create', 'label' => 'افزودن فاکتور جدید', 'icon' => '➕' ] ] ] ], 'settings' => [ 'route' => 'admin.settings.index', 'label' => 'تنظیمات', 'icon' => '⚙️', 'color' => 'gray', 'permission' => 'view settings' ] ] ] ] ]; @endphp {{-- Export config for use in other components --}} @php $GLOBALS['sidebar_config'] = $adminConfig; @endphp