@csrf @if ($form['method'] == 'put' || $form['method'] == 'patch') @method('put') @endif @foreach ($form['fields'] as $row)
@foreach ($row as $field)
@if (isset($field['type'])) {{-- input start --}} {{-- input ends --}} @if ($field['type'] == 'checkbox') @endif {{-- throws the error --}} @error($field['name']) {{ $message }} @enderror @else {{--

{{$field}}

--}} @if (isset($field['label']) && empty($field['options']))
@endif @endif {{-- for the options tag --}} @if (isset($field['options'])) @error($field['name']) {{ $message }} @enderror @endif @if (isset($field['textArea'])) @endif
@endforeach
@endforeach {{--
@error('code') {{ $message }} @enderror
@error('full_name') {{ $message }} @enderror
--}} @if (isset($disabled) && $disabled != true) @endif @section('custom-script') {{-- --}} @foreach ($form['fields'] as $row) @foreach ($row as $field) @if (isset($field['type']) && $field['type'] == 'checkbox') @endif @if (isset($field['class']) && $field['class'] == 'ndp-nepali-calendar') @endif @endforeach @endforeach @endsection