@php $megaGroups = [ 'product' => [ 'label' => 'Product', 'items' => [ [ 'icon' => 'fa-route', 'title' => 'How It Works', 'desc' => 'Purchase, recharge, tap in, travel, tap out.', 'route' => 'how-it-works', ], [ 'icon' => 'fa-id-card', 'title' => 'Card Types', 'desc' => 'Personalized vs Non-Personalized cards.', 'route' => 'cards', ], [ 'icon' => 'fa-star', 'title' => 'Features', 'desc' => 'Everything the card can do, in detail.', 'route' => 'features', ], [ 'icon' => 'fa-shield-halved', 'title' => 'Security', 'desc' => 'Encryption, fraud detection, compliance.', 'route' => 'security', ], ], 'promo' => [ 'title' => 'Get Your Card', 'desc' => 'Apply online in minutes.', 'icon' => 'fa-credit-card', 'href' => route('cards'), ], ], 'wallet' => [ 'label' => 'Wallet & Rewards', 'items' => [ [ 'icon' => 'fa-wallet', 'title' => 'Recharge & Wallet', 'desc' => 'Top up via bank, wallet, QR, or counter.', 'route' => 'recharge', ], [ 'icon' => 'fa-gift', 'title' => 'Rewards & Discounts', 'desc' => 'Student, senior, and loyalty benefits.', 'route' => 'rewards', ], [ 'icon' => 'fa-mobile-screen', 'title' => 'Mobile App', 'desc' => 'Manage your card from your pocket.', 'route' => 'app', ], ], 'promo' => [ 'title' => 'Get the App', 'desc' => 'Manage everything on your phone.', 'icon' => 'fa-mobile-screen', 'href' => route('app'), ], ], 'company' => [ 'label' => 'Company', 'items' => [ [ 'icon' => 'fa-building', 'title' => 'About Us', 'desc' => 'Our story, mission, and timeline.', 'route' => 'about', ], [ 'icon' => 'fa-briefcase', 'title' => 'Careers', 'desc' => 'Join the team building Fintech.', 'route' => 'careers', ], [ 'icon' => 'fa-newspaper', 'title' => 'Blog', 'desc' => 'Product stories and deep-dives.', 'route' => 'blog', ], [ 'icon' => 'fa-bullhorn', 'title' => 'News', 'desc' => 'Company announcements and press.', 'route' => 'news', ], [ 'icon' => 'fa-file-circle-exclamation', 'title' => 'Notice Board', 'desc' => 'Regulatory circulars and notices.', 'route' => 'notice', ], [ 'icon' => 'fa-images', 'title' => 'Gallery', 'desc' => 'Photos from across the network.', 'route' => 'gallery', ], ], ], 'support' => [ 'label' => 'Support', 'items' => [ [ 'icon' => 'fa-circle-question', 'title' => 'Help Center', 'desc' => 'Guides, tutorials, and live chat.', 'route' => 'help', ], [ 'icon' => 'fa-comments', 'title' => 'FAQ', 'desc' => 'Quick answers to common questions.', 'route' => 'faq', ], [ 'icon' => 'fa-envelope', 'title' => 'Contact Us', 'desc' => 'Offices, phone, email, and map.', 'route' => 'contact', ], [ 'icon' => 'fa-download', 'title' => 'Download Forms', 'desc' => 'KYC forms and user guides.', 'route' => 'download', ], [ 'icon' => 'fa-magnifying-glass-location', 'title' => 'Track Application', 'desc' => 'Check your card application status.', 'route' => 'track-application', ], ], ], ]; // Resolve hrefs + active state here once, rather than repeating request()->routeIs() // checks throughout the markup below. foreach ($megaGroups as $key => &$group) { $group['active'] = false; foreach ($group['items'] as &$item) { $item['href'] = route($item['route']); $item['active'] = request()->routeIs($item['route']) || request()->routeIs($item['route'] . '.*'); if ($item['active']) { $group['active'] = true; } } unset($item); } unset($group); $themeToggleScript = "document.documentElement.classList.toggle('dark');" . "localStorage.setItem('yc-theme', document.documentElement.classList.contains('dark') ? 'dark' : 'light');"; @endphp
Fintech