@foreach ($inputs as $key => $input)
@php $type = $input->type @endphp @if ($type->name) @if ($input->fillable)
@include("livewire.forms.inputs.$type->name", [ 'input' => $input, 'key' => $key, 'iteration' => $iteration, 'mode' => 'pending', ])
@endif @endif
@endforeach
@if ($faq) @endif
@if($form)
Archives : {{ $form->name }}
@if (!count($form->archives))

{{ 'Aucun fomulaire dans les archives.' }}

@else
@php $template_inputs = []; $header = $form->inputs()->wherenull('input_template')->get(); @endphp @foreach ($header as $input) @php $template_inputs[] = $input->id; @endphp @endforeach @foreach ($filled_forms as $archive) @php $test = $archive->filled_inputs ->map(function ($g) { return $g->input_template; }) ->toarray(); @endphp @foreach ($template_inputs as $tem) @if (in_array($tem, $test)) @foreach ($archive->filled_inputs as $filled_input) @if ($filled_input->input_template == $tem) @endif @endforeach @else @endif @endforeach @endforeach
Date Utilisateur{{ $input->display_name }}
{{ $archive->created_at->format('d/m/Y H:i') }} {{ $archive->user->name }} @php $type = $filled_input->type()->first(); @endphp @if ($type->name) @if (!$filled_input->fillable) @if ($filled_input->value != null) @include( "livewire.forms.inputs.$type->name", [ 'input' => $filled_input, 'mode' => 'render', ] ) @else - @endif @endif @endif -
@endif
@endif @script @endscript