@extends('layout.page', [ 'type' => 'edit', 'model' => new \App\Models\PersonalDataProtectionAct(), 'index' => route('pdpa.index'), 'action' => route('pdpa.update', ['pdpa' => $pdpa]), ]) @section('fields') @include('layout.components.forms.input', [ 'name' => 'pdpa_category', 'label' => 'ชื่อหัวข้อ', 'value' => $pdpa->pdpa_category, 'placeholder' => '', ]) @include('layout.components.forms.textarea-normal', [ 'name' => 'pdpa_description', 'label' => 'รายละเอียด', 'value' => $pdpa->pdpa_description, 'placeholder' => '', 'id' => 'editor-1', ]) @include('layout.group', [ 'label' => 'รายการเก็บข้อมูล', 'fields' => [ [ 'form_component' => 'layout.components.forms.pdpa-child', 'form_data' => [ 'value' => $pdpa, ], ], ], ]) @endsection @push('script') @endpush