{{-- ===== HOSTING PLANS ===== --}} @php $c = $content ?? collect(); $hpTitle = $c->has('title') ? $c->get('title')->content_value : __('sections.hosting.title'); $hpSubtitle = $c->has('subtitle') ? $c->get('subtitle')->content_value : __('sections.hosting.subtitle'); $promoIcon = $c->has('promo_icon') ? $c->get('promo_icon')->content_value : 'ri-gift-2-line'; $promoTitle = $c->has('promo_title') ? $c->get('promo_title')->content_value : __('sections.hosting.promo_title'); $promoText = $c->has('promo_text') ? $c->get('promo_text')->content_value : __('sections.hosting.promo_text'); $promoCta = $c->has('promo_cta') ? $c->get('promo_cta')->content_value : __('sections.hosting.claim_offer'); $hostingProducts = isset($products) ? $products->filter(fn($p) => $p->type === 'hosting') : collect(); $icons = ['ri-rocket-line', 'ri-speed-line', 'ri-flashlight-line', 'ri-vip-crown-line']; @endphp

{{ $hpTitle }}

{{ $hpSubtitle }}

{{-- Promo sidebar --}}

{{ $promoTitle }}

{{ $promoText }}

{{ $promoCta }}
{{-- Plan cards --}} @foreach($hostingProducts->take(3) as $idx => $product) @php $pricing = $product->pricing->first(); $monthlyPrice = $pricing ? $pricing->monthly : '0.00'; $annualPrice = $pricing ? $pricing->annually : '0.00'; $configOptions = is_string($product->config_options) ? json_decode($product->config_options, true) : ($product->config_options ?? []); $features = []; for ($i = 1; $i <= 7; $i++) { if (!empty($configOptions["f{$i}"])) $features[] = $configOptions["f{$i}"]; } $isPopular = $idx === 1; @endphp
@if($isPopular)
{{ __('sections.hosting.most_popular') }}
@endif
{{ $product->name }}
{{ $product->description }}
${{ $monthlyPrice }}/mo
@foreach($features as $feature)
{{ $feature }}
@endforeach
{{ __('sections.hosting.control_panel') }}
{{ __('sections.hosting.get_started') }}
@endforeach