@php $headline = $content['headline'] ?? ''; $sub = $content['subheadline'] ?? ''; $formId = $content['form_id'] ?? null; $success = $content['success_message'] ?? __('forms_public.landing_default_success'); $embedForm = null; if ($formId) { $embedForm = \App\Models\Form::withoutGlobalScope('tenant') ->where('tenant_id', $page->tenant_id) ->where('id', $formId) ->where('active', true) ->first(); } @endphp
@if($headline)

{{ $headline }}

@endif @if($sub)

{{ $sub }}

@endif @if($embedForm)
@else
@csrf @error('email')
{{ $message }}
@enderror
@if(session('landing_success'))

{{ $success }}

@endif
@endif