{!! html()->form('PUT', route('sub_exams.update', [$exam->id]))->id('exam_form')->open() !!}

{{ __('exam.edit_exam') }}

@if (auth()->user()->hasRole('Super Admin'))
@endif
{!! html()->label(__('exam.exam_name') . ':', 'exam_name') !!} {!! html()->text('exam_name')->class('form-control')->id('exam_name')->required()->maxLength(100)->value(old('exam_name', $exam->exam_name ?? '')) !!}
{!! html()->label(__('exam.select_parent_exam') . ':', 'parent_id') !!} {!! html()->select('parent_id', $parent_exam_list)->class('form-control')->id('parent_id')->required()->value(old('parent_id', $exam->parent_id)) !!}
{!! html()->label(__('core.note') . ':', 'note') !!} {!! html()->textarea('note')->class('form-control')->id('note')->value(old('note', $exam->note ?? '')) !!}
{!! html()->button(__('core.save'), 'submit')->class('btn btn-primary') !!} {!! html()->button(__('core.close'), 'button')->class('btn btn-default')->attribute('data-bs-dismiss', 'modal') !!}
{!! html()->form()->close() !!}