@php /** * Render satu borang penuh (seksyen + field + butang hantar). * * @var \App\Models\Backend\ContentForm $form */ $site = $siteSlug ?? request()->segment(1); $sections = $form->sections; $unsectioned = $form->fields->whereNull('field_section_fk'); @endphp @once @endonce

{{ $form->title() }}

@if (filled($form->translation()?->form_translation_desc ?? $form->form_desc))

{{ $form->translation()?->form_translation_desc ?? $form->form_desc }}

@endif
@csrf {{-- Honeypot: manusia tidak nampak, bot akan isi --}} @foreach ($sections as $section)
{{ $section->section_title }} @if (filled($section->section_desc))

{{ $section->section_desc }}

@endif @foreach ($form->fields->where('field_section_fk', $section->section_id) as $field) @include('frontend.form._field', ['field' => $field]) @endforeach
@endforeach @foreach ($unsectioned as $field) @include('frontend.form._field', ['field' => $field]) @endforeach

* Ruangan wajib diisi.