@php $themeDefaults = (array) config('themes.available.'.($template->slug ?: 'fortradex'), []); $themePrimary = old('primary_color', $template->primary_color ?: ($themeDefaults['primary'] ?? '#0B5ED7')); $themeSecondary = old('secondary_color', $template->secondary_color ?: ($themeDefaults['secondary'] ?? '#071A2E')); $themeAccent = old('accent_color', $template->accent_color ?: ($themeDefaults['accent'] ?? '#F2C94C')); $themeAuthVariant = old('auth_variant', $template->auth_variant ?: 'theme'); $variantSlug = preg_replace('/^(?:supplied|premium)-/', '', (string) $themeAuthVariant); $selectedLayout = \App\Support\ClientThemeDesign::supports($variantSlug) ? $variantSlug : null; $autoVariant = $selectedLayout === null ? $themeAuthVariant : 'theme'; $themeDesign = array_replace(!empty($themeDefaults['premium']) ? (array) data_get($themeDefaults, 'theme_meta.design', []) : [], (array) data_get($template->theme_meta, 'design', []), (array) old('theme_design', [])); $designValue = static fn (string $key, mixed $default = ''): mixed => data_get($themeDesign, $key, $default); $finanticsDefaultSlides = [ ['eyebrow'=>'Trade with confidence','title'=>'Global markets. Structured MT4 access.','description'=>'Explore forex, metals, indices, shares, commodities and crypto instruments through a professional MT4 environment.','primary_label'=>'Open Account','primary_url'=>'/register','secondary_label'=>'Explore Markets','secondary_url'=>'/markets','image_url'=>'/themes/generated/finantics/v2/slider-01-city.webp','active'=>1], ['eyebrow'=>'MetaTrader 4','title'=>'A proven platform for modern market access.','description'=>'Use MT4 charts, technical tools and order execution with clear account monitoring.','primary_label'=>'View Platform','primary_url'=>'/platform','secondary_label'=>'Client Login','secondary_url'=>'/login','image_url'=>'/themes/generated/finantics/v2/slider-02-platform.webp','active'=>1], ['eyebrow'=>'Trading accounts','title'=>'Choose account conditions that match your approach.','description'=>'Compare account plans, enabled features and minimum deposits.','primary_label'=>'Compare Accounts','primary_url'=>'/accounts','secondary_label'=>'Open Account','secondary_url'=>'/register','image_url'=>'/themes/generated/finantics/v2/slider-03-accounts.webp','active'=>1], ['eyebrow'=>'Risk-aware trading','title'=>'Make informed decisions before you participate.','description'=>'Understand leverage, margin, volatility and execution risk.','primary_label'=>'Risk Disclosure','primary_url'=>'/risk','secondary_label'=>'Contact Support','secondary_url'=>'/contact-us','image_url'=>'/themes/generated/finantics/v2/slider-04-risk.webp','active'=>1], ['eyebrow'=>'Multi-market access','title'=>'One account portal. Multiple market classes.','description'=>'Monitor account data while using WebTrader for order execution.','primary_label'=>'Start Trading','primary_url'=>'/register','secondary_label'=>'Learn More','secondary_url'=>'/about-us','image_url'=>'/themes/generated/finantics/v2/slider-05-global.webp','active'=>1], ]; $finanticsSlides = collect((array) data_get($themeDesign, 'slides', [])); if (($template->slug ?? '') === 'finantics' && $finanticsSlides->isEmpty()) $finanticsSlides = collect($finanticsDefaultSlides); if (($template->slug ?? '') === 'fortradex' && !array_key_exists('slides', $themeDesign)) $finanticsSlides = collect(\App\Support\FortradexTheme::defaultSlides()); @endphp
@csrf @if($formMethod === 'PUT') @method('PUT') @endif
Return to CRM

{{ $pageTitle }}

Build the global website theme: header, page wrapper, and footer.
Cancel