@extends('website.layout')

@section('content')
    @if ($preview ?? false)
        <div class="sticky top-0 z-40 bg-amber-500 text-black text-center text-sm py-2 px-4 font-medium">
            {{ __('معاينة — هذه الصفحة غير منشورة للزوار') }}
        </div>
    @endif

    {!! app(\App\Domain\Website\Services\BlockRenderer::class)->renderPage($page, [
        'academy' => $academy,
        'settings' => $settings,
        'page' => $page,
    ]) !!}
@endsection
