@csrf
{{--

Text here

--}} {{-- questions database --}} @foreach ($categories as $category)

{{$category->title}}

@if($category->description)

{{$category->description}}

@endif
@foreach ($category->questions as $question) @if($question->type == 'boolean')

{{$question->title}}

@if($question->description)

{!!$question->description!!}

@endif
@elseif($question->type == 'textarea')
@elseif($question->type == 'input')
@elseif($question->type == 'file') {{--

#

choose file

Allowed JPG, PNG, PDF, DOC. Max size of 2MB

--}} @if ($errors->has('files.*'))

#

Choose file

Allowed JPG, PNG, JPEG. Max size of 2MB

{{ $errors->first('files.*') }} @else @if(isset($files[$question->id]) && !is_string($files[$question->id]) && ($files[$question->id]->getClientOriginalExtension() == "png" || $files[$question->id]->getClientOriginalExtension() == "jpg" ) &&$files[$question->id]->temporaryUrl())
{{$files[$question->id]->getClientOriginalName()}}
#
@elseif(isset($existing_files[$question->id]) && is_string($existing_files[$question->id]['file_path']))
id]['file_path'])}}" width="136" height="136" alt="" class="object-cover object-center w-full h-full block" >
{{$existing_files[$question->id]['file_path']}}
#
@else

#

Choose file

Allowed JPG, PNG, JPEG. Max size of 2MB

@endif @endif @elseif($question->type == 'checkbox')
@if($question->description)
{!!$question->description!!}
@endif @endif @if($question->file)

@if($question->file_title) {{$question->file_title}} @else View file @endif

@endif @if ($errors->has("question$question->id")) {{ $errors->first("question$question->id") }} @endif @endforeach
@endforeach {{-- end questions database --}}

Signature

@if($candidate->signiture_chiledcare_declaration) signiture_chiledcare_declaration")}}"> @endif
@error('signature') {{ $message }} @enderror
Calendar