@extends('frontend.layout') @section('title', 'Privacy Policy — ' . config('app.name')) {{-- See terms.blade.php — same rationale for hiding the chrome. --}} @section('hide_chrome', '1') @php // The CMS column `pages.content` can hold either a structured // array (subtitle / sections[] / bottom_text) OR a raw HTML // string (admin pasted a complete Privacy Policy markup). Render // both shapes — string → prose wrapper, array → card grid. $rawHtml = is_string($content) && trim($content) !== '' ? $content : null; $c = is_array($content) ? $content : []; $sections = $c['sections'] ?? []; @endphp @section('content')
{{-- Header --}}

Privacy Policy

{{ $c['subtitle'] ?? 'Your privacy is important to us. This policy explains how we collect, use, and protect your data.' }}

Last Updated: {{ $c['last_updated'] ?? '' }}
GDPR Compliant
{{-- Body: either the admin's raw HTML, OR the structured card grid --}} @if($rawHtml) {{-- Admin pasted a complete HTML template (e.g.
...

...) -- render as raw HTML inside a styled prose wrapper. --}}
{!! $rawHtml !!}
@else {{-- Structured JSON: render the card grid --}}
@foreach($sections as $index => $section) @if(!empty($section['title']))
{{ str_pad($index + 1, 2, '0', STR_PAD_LEFT) }}

{{ $section['title'] }}

{{ $section['content'] ?? '' }}

@endif @endforeach
@endif {{-- Bottom text --}} @if(!empty($c['bottom_text']))

{{ $c['bottom_text'] }}

@endif {{-- Bottom CTA --}}

{{ __('Questions about your data?') }} {{ __('Contact our privacy team') }}

@endsection