@php $nav = [ ['label' => 'Main', 'items' => [ ['route' => 'admin.dashboard', 'pattern' => 'admin.dashboard', 'icon' => 'layout-dashboard', 'text' => 'Dashboard'], ]], ['label' => 'Content', 'items' => [ ['route' => 'admin.pages.index', 'pattern' => 'admin.pages.*', 'icon' => 'file-text', 'text' => 'Pages'], ['route' => 'admin.services.index', 'params' => ['type' => 'service'], 'pattern' => 'admin.services.*', 'icon' => 'sparkles', 'text' => 'Services'], ['route' => 'admin.products.index', 'pattern' => 'admin.products.*', 'icon' => 'package', 'text' => 'Products'], ['route' => 'admin.product-categories.index', 'pattern' => 'admin.product-categories.*', 'icon' => 'tags', 'text' => 'Product Categories'], ]], ['label' => 'Media & Proof', 'items' => [ ['route' => 'admin.gallery.index', 'pattern' => 'admin.gallery.*', 'icon' => 'images', 'text' => 'Gallery'], ['route' => 'admin.gallery-categories.index', 'pattern' => 'admin.gallery-categories.*', 'icon' => 'folder-open', 'text' => 'Gallery Categories'], ['route' => 'admin.testimonials.index', 'pattern' => 'admin.testimonials.*', 'icon' => 'quote', 'text' => 'Testimonials'], ]], ['label' => 'Blog', 'items' => [ ['route' => 'admin.blog.index', 'pattern' => 'admin.blog.*', 'icon' => 'newspaper', 'text' => 'Posts'], ['route' => 'admin.blog-categories.index', 'pattern' => 'admin.blog-categories.*', 'icon' => 'folder', 'text' => 'Categories'], ['route' => 'admin.blog-tags.index', 'pattern' => 'admin.blog-tags.*', 'icon' => 'hash', 'text' => 'Tags'], ]], ['label' => 'Site Blocks', 'items' => [ ['route' => 'admin.features.index', 'pattern' => 'admin.features.*', 'icon' => 'list-checks', 'text' => 'Features'], ['route' => 'admin.statistics.index', 'pattern' => 'admin.statistics.*', 'icon' => 'bar-chart-3', 'text' => 'Statistics'], ['route' => 'admin.faqs.index', 'pattern' => 'admin.faqs.*', 'icon' => 'help-circle', 'text' => 'FAQs'], ]], ['label' => 'Communication', 'items' => [ ['route' => 'admin.contact-messages.index', 'pattern' => 'admin.contact-messages.*', 'icon' => 'mail', 'text' => 'Messages'], ]], ['label' => 'System', 'items' => [ ['route' => 'admin.settings.index', 'pattern' => 'admin.settings.*', 'icon' => 'settings', 'text' => 'Settings'], ['route' => 'admin.settings.index', 'params' => ['group' => 'seo'], 'pattern' => 'admin.seo.*', 'icon' => 'search', 'text' => 'SEO Defaults'], ]], ]; if (auth()->user()?->isAdmin()) { $nav[count($nav) - 1]['items'][] = ['route' => 'admin.users.index', 'pattern' => 'admin.users.*', 'icon' => 'users', 'text' => 'Users']; } @endphp