@extends('layouts/layoutMaster') @section('title', 'Fill Form - ' . $form->name) @section('vendor-style') @vite(['resources/assets/vendor/libs/select2/select2.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/select2/select2.js']) @endsection @section('page-script') @vite(['resources/js/formUser_create-manage.js']) @endsection @section('content')

Fill Form: {{ $form->name }}

@if(isset($responseValues))
@method('PUT') @else @endif @csrf @if(isset($taskId)) @endif @if(isset($responseValues)) @endif
@foreach ($fields as $field)
@php $required = $field->required ? 'required' : ''; $value = isset($responseValues[$field->id]) ? $responseValues[$field->id] : ''; @endphp @if ($field->type === 'description')
{{ $field->label }}
@elseif ($field->type === 'dropdown') @elseif ($field->type === 'number') @elseif ($field->type === 'yes/no')
@elseif ($field->type === 'location')
Fetching location...
@elseif ($field->type === 'signature')

Your signature:

@elseif ($field->type === 'image upload') @if($value)
@endif @elseif ($field->type === 'file upload') @if($value) @endif @elseif ($field->type === 'date') @else @endif
@endforeach
@endsection