@php use App\Http\Middleware\SetLocale; use App\Models\Faq; use App\Models\KpiFeature; use App\Models\LandingBlock; use App\Models\Testimonial; $locale = app()->getLocale(); $rtl = SetLocale::isRtl($locale); $platformName = config('platform.name', config('app.name')); $tagline = config('platform.tagline'); $get = fn (string $key) => LandingBlock::findByKey($key); $hero = $get('section_one'); $features = $get('section_two'); $analysis = $get('section_three'); $kpisIntro = $get('kpis_intro'); $faqIntro = $get('faq_intro'); $testIntro = $get('testimonials_intro'); $cta = $get('cta'); $footer = $get('footer'); $kpiBlocks = KpiFeature::where('is_active', true)->orderBy('sort')->get(); $faqs = Faq::where('is_active', true)->orderBy('sort')->get(); $testimonials = Testimonial::where('is_active', true)->orderBy('sort')->get(); $iconMap = [ 'emerald' => 'from-emerald-500 to-emerald-700', 'sky' => 'from-sky-500 to-sky-700', 'indigo' => 'from-indigo-500 to-indigo-700', 'violet' => 'from-violet-500 to-violet-700', 'amber' => 'from-amber-500 to-amber-700', 'rose' => 'from-rose-500 to-rose-700', 'slate' => 'from-slate-500 to-slate-700', 'brand' => 'from-brand-500 to-brand-700', 'blue' => 'from-blue-500 to-blue-700', 'red' => 'from-red-500 to-red-700', ]; @endphp {{ $platformName }}{{ $tagline ? ' — '.$tagline : '' }} @vite(['resources/css/app.css','resources/js/app.js']) {{-- ─────────────────────── Navbar ─────────────────────── --}}
@if($logo = config('platform.logo')) @else @endif {{ $platformName }}
{{ __('Start') }} {{-- Mobile menu --}}
{{ __('Features') }} {{ __('KPIs') }} {{ __('Analysis') }} @if($testimonials->count()) {{ __('Customers') }} @endif @if($faqs->count()) {{ __('FAQ') }} @endif {{ __('Book a demo') }} {{ __('Sign in') }}
@include('partials.lang-switcher')
{{-- ─────────────────────── Hero ─────────────────────── --}} @if($hero)
{{-- Decorative floating ticker chips (hidden on mobile) --}}
{{ $hero->t('eyebrow') }} {{ __('Live data') }}

{{ $hero->t('title') }}

{{ $hero->t('subtitle') }}

@php $logos = $hero->v('trust_logos', []); @endphp @if(!empty($logos))
{{ $hero->t('trust_label') }}
@foreach(array_merge($logos, $logos) as $name) {{ $name }} @endforeach
@endif
{{-- Mock dashboard --}}
{{ $hero->t('badge_text') }}
{{-- Floating mini cards --}}
{{ $platformName }} / dashboard
@foreach([1,2,3] as $i)
{{ $hero->t("kpi_tile_{$i}_label") }}
{{ $hero->v("kpi_tile_{$i}_value", '—') }}
{{ $hero->v("kpi_tile_{$i}_trend", '') }}
@endforeach
{{ $hero->t('alert_text') }}
@endif {{-- ─────────────────────── Live ticker strip ─────────────────────── --}}
@php $tickers = [ ['EUR/USD', '1.0832', '+0.21%', 'up'], ['BRENT', '$83.41', '-0.34%', 'down'], ['GOLD', '$2,341', '+0.18%', 'up'], ['BTC', '$67,245','+1.42%', 'up'], ['CAC 40', '8,124', '-0.06%', 'down'], ['S&P 500', '5,254', '+0.42%', 'up'], ['BEL 20', '3,914', '+0.11%', 'up'], ['DAX', '18,492', '-0.08%', 'down'], ]; @endphp @foreach(array_merge($tickers, $tickers) as $t) {{ $t[0] }} {{ $t[1] }} {{ $t[3] === 'up' ? '▲' : '▼' }} {{ $t[2] }} @endforeach
{{-- ─────────────────────── Features (section_two) ─────────────────────── --}} @if($features)
{{ $features->t('eyebrow') }}

{{ $features->t('title') }}

{{ $features->t('subtitle') }}

@foreach([1,2,3,4] as $i)

{{ $features->t("card_{$i}_title") }}

{{ $features->t("card_{$i}_text") }}

@endforeach
@foreach([1,2,3,4] as $i)
{{ $features->v("fact_{$i}_value", '—') }}
{{ $features->t("fact_{$i}_label") }}
@endforeach
@endif {{-- ─────────────────────── KPI feature blocks ─────────────────────── --}} @if($kpiBlocks->count())
{{-- Floating decorative chips (desktop only) --}}
@if($kpisIntro)
{{ $kpisIntro->t('eyebrow') }}

{{ $kpisIntro->t('title') }}

{{ $kpisIntro->t('subtitle') }}

@endif
@foreach($kpiBlocks as $idx => $kpi)
0{{ $idx + 1 }}

{{ $kpi->title() }}

{{ $kpi->summary() }}

    @foreach($kpi->items() as $item)
  • {{ $item }}
  • @endforeach
@endforeach
@endif {{-- ─────────────────────── Analysis (section_three) ─────────────────────── --}} @if($analysis)
@php $analysisIcons = [1 => 'chart', 2 => 'trending-up', 3 => 'sparkles', 4 => 'droplet', 5 => 'shield']; $analysisColors = [1 => 'from-violet-500 to-violet-700', 2 => 'from-emerald-500 to-emerald-700', 3 => 'from-amber-500 to-amber-700', 4 => 'from-sky-500 to-sky-700', 5 => 'from-rose-500 to-rose-700']; @endphp
{{ $analysis->t('eyebrow') }}

{{ $analysis->t('title') }}

{{ $analysis->t('subtitle') }}

{{-- Bento-style grid: card 1 spans 2 cols, others normal --}}
@foreach([1,2,3,4,5] as $i)

{{ $analysis->t("card_{$i}_title") }}

{{ $analysis->t("card_{$i}_text") }}

@if($i === 1) @endif
@endforeach
@endif {{-- ─────────────────────── Testimonials ─────────────────────── --}} @if($testimonials->count())
@if($testIntro)
{{ $testIntro->t('eyebrow') }}

{{ $testIntro->t('title') }}

@endif
@foreach($testimonials as $t)
@for($i=0;$i<$t->rating;$i++)★@endfor
“{{ $t->content() }}”
@if($t->avatar) @else {{ strtoupper(substr($t->name,0,1)) }} @endif
{{ $t->name }}
{{ $t->role() }}{{ $t->company ? ' — '.$t->company : '' }}
@endforeach
@endif {{-- ─────────────────────── FAQ ─────────────────────── --}} @if($faqs->count())
@if($faqIntro)
{{ $faqIntro->t('eyebrow') }}

{{ $faqIntro->t('title') }}

{{ $faqIntro->t('subtitle') }}

@endif
@foreach($faqs as $f)
{!! nl2br(e($f->answer())) !!}
@endforeach
@endif {{-- ─────────────────────── CTA ─────────────────────── --}} @if($cta)
@endif {{-- ─────────────────────── Footer ─────────────────────── --}} @include('partials.cookie-banner')