{{ $page->seo['title'] ?? $page->hero_section['title'] }} {!! $page->seo['description'] ?? strip_tags($page->hero_section['description']) !!} {{-- {{ is_array($page->seo['keywords'] ?? null) ? implode(', ', $page->seo['keywords']) : ($page->seo['keywords'] ?? '') }} --}} @if(isset($page->seo['banner'])) {{ Storage::url($page->seo['banner']) }} @endif @if(isset($page->hero_section))
@if(isset($page->hero_section['background']))
{{ $page->hero_section['title'] }}
@endif

{{ $page->hero_section['title'] }}

{!! $page->hero_section['description'] !!}
@endif @if($page->category)
@foreach($page->category->products()->with(['plans.prices'])->get() as $product) @php $lowestPlan = $product->plans ->flatMap(function($plan) { return $plan->prices->map(function($price) use ($plan) { return ['plan' => $plan, 'price' => $price]; }); }) ->sortBy('price.price') ->first(); @endphp
{{-- Prdocut Image Banner @if($product->image)
{{ $product->name }}
@endif --}} {{-- Product Image Icon --}} @if($product->image)
{{ $product->name }}
@endif

{{ $product->name }}

{!! $product->description !!}
@if($lowestPlan) @php $currency = \App\Models\Currency::firstWhere('code', $lowestPlan['price']->currency_code); $formattedPrice = $currency ? ($currency->prefix ?? '') . number_format($lowestPlan['price']->price, 2) . ($currency->suffix ?? '') : number_format($lowestPlan['price']->price, 2); @endphp
Starting from {{ $formattedPrice }}
@endif {{ __('general.view') }}
@endforeach
@endif @php $activeFeatures = collect($page->features ?? [])->filter(fn($feature) => $feature['is_active'] ?? true); @endphp @if($activeFeatures->isNotEmpty())

Features

@foreach($activeFeatures as $feature)
@if(!empty($feature['icon_svg']))
{!! $feature['icon_svg'] !!}
@elseif(isset($feature['icon']))
{{ $feature['title'] }}
@endif

{{ $feature['title'] }}

{!! $feature['description'] !!}
@endforeach
@endif @if(!empty($page->game_preview)) @foreach($page->game_preview as $preview) @if($preview['is_active'] ?? true)

{{ $preview['title'] }}

{!! $preview['description'] !!}
@if(isset($preview['youtube_embed']))
@endif
@endif @endforeach @endif @php $activeGamePanels = collect($page->game_panel ?? [])->filter(fn($panel) => $panel['is_active'] ?? true); $activeGamePreviews = collect($page->game_preview ?? [])->filter(fn($preview) => $preview['is_active'] ?? true); $swapOrder = $activeGamePanels->isNotEmpty() && $activeGamePreviews->isNotEmpty(); @endphp @if(!empty($page->game_panel)) @foreach($page->game_panel as $panel) @if($panel['is_active'] ?? true)

{{ $panel['title'] }}

{!! $panel['description'] !!}
@php $features = is_array($panel['features'] ?? null) ? $panel['features'] : (empty($panel['features']) ? [] : explode(',', $panel['features'])); @endphp @if(!empty($features))
@foreach($features as $feature) {{ trim($feature) }} @endforeach
@endif
@if(!empty($panel['gallery']))
@endif
@endif @endforeach @endif @php $activeFaqs = collect($page->faqs ?? [])->filter(fn($faq) => $faq['is_active'] ?? true); @endphp @if($activeFaqs->isNotEmpty())

Frequently Asked Questions

@foreach($activeFaqs as $faq)
{!! $faq['answer'] !!}
@endforeach
@endif