@include('admin.crud.form', [ 'action' => route('admin.course-materials.notes.update', [$course_id, $material->id]), 'formId' => 'edit-note-form', 'submitText' => 'Update Note', 'class' => 'ajax-crud-form', 'redirect' => route('admin.course-materials.notes.index', [$course_id, $material->id]), 'method' => 'PUT', 'fields' => [ [ 'type' => 'info', 'content' => 'Editing note for material: ' . $material->title . '', 'col' => 12 ], [ 'type' => 'textarea', 'name' => 'content', 'id' => 'content', 'label' => 'Note Content', 'placeholder' => 'Enter note content', 'required' => true, 'value' => $note->content, 'rows' => 10, 'col' => 12 ], [ 'type' => 'json', 'name' => 'attachments', 'id' => 'attachments', 'label' => 'Attachments (JSON)', 'placeholder' => 'Enter attachments as JSON array', 'value' => $note->attachments ? json_encode($note->attachments, JSON_PRETTY_PRINT) : '', 'col' => 12 ] ] ])