@php $legalBrand = trim((string) cms('branding.site_name', config('app.name', 'Trading Platform'))); $legalEntity = trim((string) cms('legal.company_name', $legalBrand)); $legalEmail = trim((string) site_contact('support_email')); $legalPhone = trim((string) site_contact('phone')); $legalPhoneHref = preg_replace('/[^+\d]/', '', $legalPhone) ?: site_contact('phone_href'); $legalAddress = trim((string) cms('legal.registered_address', site_contact('address'))); $legalKey = (string) data_get($legalPage, 'key', 'legal'); $legalTitle = (string) data_get($legalPage, 'title', 'Legal Information'); $legalSummary = (string) data_get($legalPage, 'summary', 'Important information about the website and related services.'); $legalUpdated = (string) data_get($legalPage, 'updated', '4 September 2026'); $legalVersion = (string) data_get($legalPage, 'version', '1.0'); $legalSections = collect((array) data_get($legalPage, 'sections', []))->values(); $legalHasSupplement = isset($page) && filled($page?->html_content); $legalContactNumber = $legalSections->count() + ($legalHasSupplement ? 2 : 1); $legalHighlights = collect((array) data_get($legalPage, 'highlights', [])); $legalCssVersion = @filemtime(public_path('themes/supplied/fxzone/assets/css/fxzone-legal.css')) ?: '20260904'; $legalJsVersion = @filemtime(public_path('themes/supplied/fxzone/assets/js/fxzone-legal.js')) ?: '20260904'; $legalRoutes = [ ['key' => 'terms', 'label' => 'Terms', 'route' => 'page.terms', 'icon' => 'fa-file-text'], ['key' => 'privacy', 'label' => 'Privacy', 'route' => 'page.privacy', 'icon' => 'fa-user-secret'], ['key' => 'aml', 'label' => 'AML', 'route' => 'page.aml', 'icon' => 'fa-shield'], ['key' => 'gdpr', 'label' => 'GDPR', 'route' => 'page.gdpr', 'icon' => 'fa-lock'], ['key' => 'cookies', 'label' => 'Cookies', 'route' => 'page.cookies', 'icon' => 'fa-sliders'], ['key' => 'risk', 'label' => 'Risk', 'route' => 'page.risk', 'icon' => 'fa-exclamation-triangle'], ]; @endphp {{ $legalTitle }} | {{ $legalBrand }} @include('shared.favicon', ['faviconFallback' => theme_asset('assets/images/favicon-2.ico', 'fxzone')]) @include('themes.includes.runtime-customization')
@include('themes.fxzone.partials.site-header')
@if($legalHighlights->isNotEmpty()) @endif
@include('themes.fxzone.partials.site-footer')
@include('themes.includes.runtime-body-end')