@extends($site->themeView('layout')) {{-- Legal notice generated from the back-office details ("Accueil & légal" tab). Empty details are not shown. --}} @section('content') @php $line = fn (string $key) => trim((string) ($legal[$key] ?? '')); $privacy = $site->pages()->published()->where('slug', 'politique-de-confidentialite')->first(['id', 'slug']); $extra = trim(strip_tags((string) $legal['extra'])) !== '' ? app(\App\Services\ContentRenderer::class)->render($legal['extra'], 'html')['html'] : ''; $rows = fn (array $keys) => collect($keys)->filter(fn ($k) => $line($k) !== '')->mapWithKeys(fn ($k) => [__('legal.fields.'.$k) => $line($k)]); $publisher = $rows(['company', 'legal_form', 'capital', 'address', 'registration', 'vat', 'phone', 'email']); $host = $rows(['host_name', 'host_address', 'host_contact']); @endphp
@include($site->themeView('partials.breadcrumbs'))

{{ __('legal.title') }}

{{ __('legal.intro', ['site' => $site->name, 'domain' => $site->primary_domain]) }}

@foreach ($publisher as $label => $value)
{{ $label }}
@if ($label === __('legal.fields.email')){{ $value }}@else{{ $value }}@endif
@endforeach @if ($line('director') !== '')
{{ __('legal.fields.director') }}
{{ $line('director') }}
@endif
{{ __('legal.contact') }}
{{ __('contact.title') }}
@if ($host->isNotEmpty())
@foreach ($host as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
@endif

{{ __('legal.ip_text', ['site' => $site->name]) }}

{{ __('legal.data_title') }}

{{ __('legal.data_text') }} @if ($privacy){{ __('legal.privacy_link') }}@endif

@if ($site->adConfig?->enabled)

{{ __('legal.ads_title') }}

{{ __('legal.ads_text') }}

@endif @if ($extra !== ''){!! $extra !!}@endif
@endsection