{{-- Navigasi bagian + panel biodata (lihat/ubah di tempat) untuk halaman detail operator. Dipakai di dalam elemen ber-x-data `bioDetail` (resources/js/app.js). $sections: bagian dari StudentBiodata/EmployeeBiodata (+ opsional `readonly`). --}} @props(['sections'])
@foreach ($sections as $key => $section) @endforeach
@foreach ($sections as $key => $section)

{{ $section['title'] }}

{{ $section['description'] }}

Ubah
@foreach ($section['readonly'] ?? [] as $item)
{{ $item['label'] }}
{{ $section['display'][$item['name']] }}
@endforeach @foreach ($section['fields'] as $field)
$field['wide'] ?? false])>
{{ $field['label'] }}
{{ $section['display'][$field['name']] }}
@endforeach
@foreach ($section['fields'] as $field) @php $type = $field['type'] ?? 'text'; $id = 'bio_'.$field['name']; $wide = ($field['wide'] ?? false) ? 'col-span-full' : null; @endphp @if ($type === 'select') @elseif ($type === 'textarea') @else @endif @endforeach
Simpan Batal
@endforeach