@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@if ($authorize->edit == '1' && $list->isactive == 1) @endif
@php $primary = $list->id; @endphp
@csrf @method('PUT')
Edit Training Needs Analysis Request

Modify the training request details

{{-- alert error --}} @if ($errors->any()) @endif
@foreach ($table_header as $field) @php $value = $list->{$field->field} ?? old($field->field); $fieldId = $field->field; @endphp
@if ($field->type == 'text') {{-- Textarea --}} @elseif ($field->type == 'date') {{-- Date Input --}} validate, 'required') ? 'required' : '' }}> @elseif ($field->type == 'enum' && $field->query) {{-- Select/Dropdown --}} @php $options = DB::select($field->query); @endphp @else {{-- Default Text Input --}} validate, 'required') ? 'required' : '' }}> @endif @error($fieldId)
{{ $message }}
@enderror @if ($field->note) {{ $field->note }} @endif
@endforeach
@endsection @push('css') @endpush @push('js') @endpush