@isset($form)
{{ $form->name }}
@if (!$showForm)

Form Management

Users :
@php $value = $form_id->form_users ->map(function ($item, $index) { return ['value' => $item['email']]; }) ->toarray(); @endphp

Public ?

@endif @php $authorized=$form_id->form_users->pluck('id')->toarray() @endphp @if (!$showForm || in_array(auth()->user()->id, $authorized))
@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
@endif @if (!$showForm)
Archives : {{ $form->name }}
@if (empty($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' => 'text-render', ] ) @else - @endif @endif @endif -
@endif
@endif @if ($showForm && $is_public)
Archives : {{ $form->name }}
@if (empty($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' => 'text-render', ] ) @else - @endif @endif @endif -
@endif
@elseif($showForm && !$is_public) Rien pour vous sur cette page @endif
@endisset