{{-- resources/views/gratis/show.blade.php --}} @extends('layouts.app') @section('title', $page['title']) @section('meta_description', $page['meta_description']) @php $hubLabels = ['ki' => 'KI & ChatGPT', 'business' => 'Business & Marketing', 'it' => 'IT & How-to', 'finanzen' => 'Selbstständigkeit & Finanzen']; $hubLabel = $hubLabels[$page['category'] ?? ''] ?? ucfirst($page['category'] ?? ''); $category = $page['category'] ?? 'ki'; @endphp @push('head') @if(!empty($page['faq'])) @endif @endpush @section('content')
{{-- Breadcrumb --}} {{-- Headline --}}

{{ $page['h1'] }}

{{-- Intro --}}

{{ $page['intro'] }}

{{-- Teaser-Punkte (immer sichtbar) --}} @if(!empty($page['teaser_points']))

Was du bekommst:

@endif {{-- Content-Gate --}} @if(!empty($page['gated_content'][0]['items']))

{{ $page['gated_content'][0]['heading'] ?? '' }}

    @foreach(array_slice($page['gated_content'][0]['items'], 0, 2) as $previewItem)
  • {{ $previewItem }}
  • @endforeach
@endif
@foreach($page['gated_content'] as $section)

{{ $section['heading'] }}

    @foreach($section['items'] as $item)
  • {{ $item }}
  • @endforeach
@endforeach
{{-- FAQ --}} @if(!empty($page['faq']))

Häufige Fragen

@foreach($page['faq'] as $faqItem)

{{ $faqItem[0] }}

{{ $faqItem[1] }}

@endforeach
@endif {{-- Verwandte Seiten --}} @if(!empty($page['related'])) @php $allLeadPages = config('lead_pages', []); $relatedPages = collect($page['related']) ->map(fn($s) => ['slug' => $s, 'data' => $allLeadPages[$s] ?? null]) ->filter(fn($r) => $r['data'] !== null) ->values(); @endphp @if($relatedPages->count() > 0)

Das könnte dich auch interessieren

@foreach($relatedPages as $rel)

{{ $rel['data']['h1'] ?? $rel['data']['title'] }}

Kostenlos freischalten →

@endforeach
@endif @endif
@endsection