@php $isRtl = in_array(app()->getLocale(), ['ar', 'he', 'fa', 'ur']); $generalSettings = \App\Models\Central\GeneralSetting::instance(); $appName = $generalSettings->app_name ?: 'Stocky'; $logoUrl = $generalSettings->getLogoUrl(); @endphp @if($seo) {{ $seo->meta_title ?? $appName }} @if($seo->meta_keywords) @endif @if($seo->og_image) @endif @if($seo->favicon) @endif @else {{ $appName }} @endif {{-- ── Navbar ──────────────────────────────────────────────────── --}}
{{-- ── Hero ────────────────────────────────────────────────── --}} @if($hero)
background_image) style="background-image: url('{{ asset($hero->background_image) }}')" @endif>
@if($hero->subtitle)

{{ $hero->subtitle }}

@endif

{!! $hero->title !!}

@if($hero->description)

{{ $hero->description }}

@endif
@if($hero->primary_button_text) {{ $hero->primary_button_text }} @endif @if($hero->secondary_button_text) {{ $hero->secondary_button_text }} @endif
@if($hero->hero_image)
@endif
@if(session('success') && session('tenant_url'))
{{ session('message') }}
{{ session('tenant_url') }}
@endif
@endif {{-- ── Trust Bar ──────────────────────────────────────────── --}} @if(!empty($stats) && $stats->isNotEmpty())

{{ __('landing.trust_bar_eyebrow') }}

@foreach($stats as $i => $stat)
{{ $stat->value }}
{{ $stat->label }}
@endforeach
@endif {{-- ── Features ────────────────────────────────────────────── --}} @if(!empty($features['is_active']) && $features['items']->isNotEmpty())

{{ __('landing.features') }}

@if($features['section'])

{{ $features['section']->section_title }}

{{ $features['section']->section_subtitle }}

@endif
@foreach($features['items'] as $i => $feature)
@if($feature->image)
@elseif($feature->icon) @else @endif

{{ $feature->title }}

@if($feature->description)

{{ $feature->description }}

@endif
@endforeach
@endif {{-- ── Pricing (Apple-minimal) ─────────────────────────────── --}} @if(!empty($pricing['is_active']))

{{ __('landing.pricing') }}

@if($pricing['settings'])

{{ $pricing['settings']->section_title }}

{{ $pricing['settings']->section_subtitle }}

@endif
@if(!empty($pricing['plans']))
@foreach($pricing['plans'] as $i => $plan)
@if($i === 1)

{{ __('landing.most_popular') }}

@endif

{{ $plan->name }}

@if($plan->price == 0) {{ __('landing.perfect_to_start') ?? 'Perfect to get started' }} @else {{ __('landing.for_growing_teams') ?? 'For growing teams' }} @endif

@if($plan->price == 0 && $plan->yearly_price == 0) {{ __('landing.free') }} @else {{ $currencySymbol }}{{ $plan->price == floor($plan->price) ? number_format($plan->price, 0) : number_format($plan->price, 2) }} / {{ __('landing.mo') }} @endif
@if($plan->yearly_price > 0)

{{ __('landing.or') }} {{ $currencySymbol }}{{ $plan->yearly_price == floor($plan->yearly_price) ? number_format($plan->yearly_price, 0) : number_format($plan->yearly_price, 2) }} / {{ __('landing.yr') }} @if($plan->getYearlySavingsPercent() > 0) {{ __('landing.save') }} {{ $plan->getYearlySavingsPercent() }}% @endif

@endif @php $limits = $plan->limits ?? []; $planFeatures = $plan->features ?? []; @endphp
    @foreach($limits as $key => $value) @php $meta = \App\Models\Central\Plan::AVAILABLE_LIMITS[$key] ?? null; @endphp @if($meta)
  • {{ $value == -1 ? __('landing.unlimited') : $value }} {{ $meta['label'] }}
  • @endif @endforeach @foreach($planFeatures as $fKey) @php $fMeta = \App\Models\Central\Plan::AVAILABLE_FEATURES[$fKey] ?? null; @endphp @if($fMeta)
  • {{ $fMeta['label'] }}
  • @endif @endforeach
{{ $plan->isFree() ? __('landing.get_started') : ($plan->hasTrial() ? __('landing.start_free_trial') : __('landing.choose_plan')) }}
@endforeach
@endif
@endif {{-- ── How It Works ────────────────────────────────────────── --}} @if(!empty($howItWorks['is_active']))

{{ $howItWorks['section']->section_label ?? __('landing.how_it_works') }}

{{ $howItWorks['section']->section_title ?? __('landing.how_it_works_title') }}

{{ $howItWorks['section']->section_subtitle ?? __('landing.how_it_works_subtitle') }}

@forelse($howItWorks['steps'] as $i => $step)
{{ str_pad((string) ($i + 1), 2, '0', STR_PAD_LEFT) }}

{{ $step->title }}

{{ $step->description }}

@empty {{-- Fallback to translation strings if no steps in DB --}}
01

{{ __('landing.hiw_features_title') }}

{{ __('landing.hiw_features_desc') }}

02

{{ __('landing.hiw_pricing_title') }}

{{ __('landing.hiw_pricing_desc') }}

03

{{ __('landing.hiw_delete_title') }}

{{ __('landing.hiw_delete_desc') }}

04

{{ __('landing.hiw_data_title') }}

{{ __('landing.hiw_data_desc') }}

05

{{ __('landing.hiw_trial_title') }}

{{ __('landing.hiw_trial_desc') }}

06

{{ __('landing.hiw_upgrade_title') }}

{{ __('landing.hiw_upgrade_desc') }}

@endforelse
@endif {{-- ── Testimonials ────────────────────────────────────────── --}} @if(!empty($testimonials))

{{ __('landing.testimonials') }}

{{ __('landing.loved_by_businesses') }}

{{ __('landing.testimonials_subtitle') }}

@foreach($testimonials as $i => $testimonial)
@if($testimonial->rating)
@for($s = 1; $s <= 5; $s++) @endfor
@endif

“{{ $testimonial->review }}”

@if($testimonial->avatar) @else @endif

{{ $testimonial->client_name }}

@if($testimonial->company_name) {{ $testimonial->company_name }} @endif
@endforeach
@endif {{-- ── FAQ ─────────────────────────────────────────────────── --}} @if(!empty($faqs))

{{ __('landing.faq') ?? 'FAQ' }}

{{ __('landing.faq_title') }}

{{ __('landing.faq_subtitle') }}

@foreach($faqs as $i => $faq)
{{ $faq->question }}
{!! nl2br(e($faq->answer)) !!}
@endforeach
@endif {{-- ── CTA ─────────────────────────────────────────────────── --}} @if($cta)
background_image) style="background-image: url('{{ asset($cta->background_image) }}')" @endif>

{{ $cta->title }}

@if($cta->subtitle)

{{ $cta->subtitle }}

@endif @if($cta->button_text) {{ $cta->button_text }} @endif
@endif
{{-- ── Footer ──────────────────────────────────────────────────── --}} {{-- ── Cookie Consent Banner ──────────────────────────────────────── --}}