@php try { $tapCms = app(\App\Services\CmsSettingsService::class)->get(); } catch (\Throwable $tapException) { $tapCms = []; } try { $tapThemeManager = app(\App\Services\ThemeManager::class); $tapThemeSlug = (string) ($activeTheme['slug'] ?? $tapThemeManager->activeSlug()); $tapPalette = (array) $tapThemeManager->palette($tapThemeSlug); } catch (\Throwable $tapException) { $tapThemeSlug = 'fortradex'; $tapPalette = []; } $tapSettings = (array) data_get($tapCms, 'trading', []); $tapEnabled = data_get($tapSettings, 'accounts_section_enabled', 'yes') === 'yes'; $tapPlans = collect((array) data_get($tapSettings, 'plans', [])) ->filter(static fn ($plan): bool => is_array($plan) && data_get($plan, 'status', 'active') === 'active' && filled(data_get($plan, 'name'))) ->take(\App\Support\TradingAccountPlanCatalog::MAX_PLANS) ->values(); $tapPrimary = (string) ($tapPalette['primary'] ?? data_get($tapCms, 'colors.primary', '#22c55e')); $tapSecondary = (string) ($tapPalette['secondary'] ?? data_get($tapCms, 'colors.secondary', '#0f172a')); $tapAccent = (string) ($tapPalette['accent'] ?? data_get($tapCms, 'colors.accent', '#f59e0b')); $tapRegisterUrl = trading_register_url(); @endphp @if($tapEnabled && $tapPlans->isNotEmpty())
{{ data_get($tapSettings, 'accounts_section_eyebrow', 'Trading accounts') }}

{{ data_get($tapSettings, 'accounts_section_title', 'Choose the account that fits your trading goals.') }}

@if(filled(data_get($tapSettings, 'accounts_section_description')))

{{ data_get($tapSettings, 'accounts_section_description') }}

@endif
@foreach($tapPlans as $tapPlan) @php $tapPlan = \App\Support\TradingAccountPlanCatalog::normalizePlan((array) $tapPlan, $loop->index); $tapFeatureDefinitions = \App\Support\TradingAccountPlanCatalog::publicFeaturesForPlan($tapPlan); $tapIconClass = \App\Support\TradingAccountPlanCatalog::iconClass((string) data_get($tapPlan, 'icon')); $tapPlanName = (string) data_get($tapPlan, 'name', 'Account'); @endphp

{{ $tapPlanName }}

Account
Minimum deposit{{ data_get($tapPlan, 'minimum_deposit', '—') }}
    @foreach($tapFeatureDefinitions as $tapFeature) @php($tapFeatureActive = (bool) data_get($tapFeature, 'active', false))
  • {{ data_get($tapFeature, 'label') }}
  • @endforeach
Open {{ $tapPlanName }}
@endforeach
@endif