@if(auth()->check()) @php $dkrActive = in_array($active ?? '', [ 'orders', 'product_sku', 'catalog', 'reports', 'responsibles', 'maf_order', ], true); $schedulesActive = in_array($active ?? '', [ 'schedule_orders', 'schedule_deliveries', 'schedule', ], true); $reclamationsActive = ($active ?? '') === 'reclamations'; $sparePartsActive = in_array($active ?? '', [ 'spare_parts', 'spare_part_orders', 'spare_part_inventory', 'pricing_codes', ], true); $stockActive = in_array($active ?? '', ['stock', 'stock_orders'], true); $adminActive = in_array($active ?? '', [ 'contractors', 'contracts', 'users', 'roles', 'admin_settings', 'admin_districts', 'admin_areas', 'notification_logs', 'import', 'year-data', 'clear-data', ], true); @endphp @if(hasAnyPermission([ 'orders.view', 'maf.view', 'catalog.view', 'reports.view', 'responsibles.view', 'maf_orders.view', ]))