{{-- resources/views/forms/submit-tech-maker.blade.php --}} @extends('layouts.master') @section('content')
@csrf @foreach ($formFields ?? [] as $section) @if ($section['type'] == 'section')

{{ $section['title'] }}

@foreach ($section['fields'] as $field)
@switch($field['type']) @case('textarea') @break @case('select') @break @case('checkbox-group') @foreach ($field['options'] as $option)
@endforeach @break @case('radio-group') @foreach ($field['options'] as $option)
@endforeach @break @case('range') @break @default @endswitch @if ($errors->has($field['name']))
{{ $errors->first($field['name']) }}
@endif
@endforeach @endif @endforeach
@endsection