@php // Render the administrator's current menu once. Browser startup may enhance // behaviour, but must not replace the native normal/sticky/mobile lists. try { $fxzMenuItems = app(\App\Services\PublicMenuService::class)->items('main', 'fxzone'); } catch (\Throwable $exception) { $fxzMenuItems = []; } if (empty($fxzMenuItems)) { $fxzResourceRoutes = [ ['About Us', 'page.about'], ['Trading FAQs', 'page.faq'], ['Terms & Conditions', 'page.terms'], ['Privacy Policy', 'page.privacy'], ['AML Policy', 'page.aml'], ['GDPR Compliance', 'page.gdpr'], ['Cookies Policy', 'page.cookies'], ['Risk Disclosure', 'page.risk'], ['Complaints Procedure', 'page.complaints'], ]; $fxzResourceItems = []; foreach ($fxzResourceRoutes as [$title, $routeName]) { if (\Illuminate\Support\Facades\Route::has($routeName)) { $fxzResourceItems[] = ['title' => $title, 'url' => route($routeName), 'children' => []]; } } $fxzMenuItems = [ ['title' => 'Home', 'url' => route('page.home'), 'children' => []], ['title' => 'Market Access', 'url' => route('page.markets'), 'children' => []], ['title' => 'Account Types', 'url' => route('page.accounts'), 'children' => []], ['title' => 'MT4 Platform', 'url' => route('page.platform'), 'children' => []], ['title' => 'Resources', 'url' => route('page.about'), 'children' => $fxzResourceItems], ['title' => 'Contact', 'url' => route('page.contact'), 'children' => []], ]; } @endphp