@if ($sommaire)

Sommaire

@foreach (['Entreprise', 'Responsables', 'Intervenants', 'Bassins'] as $permission)
@endforeach
@isset($pages) @foreach ($pages as $k=>$page)
@endforeach @endisset
@endif {{-- Document summary --}} {{-- @include('livewire.forms.carnetsanitaire.templates.document-summary') --}} {{-- Document progression --}} {{-- @include('livewire.forms.carnetsanitaire.templates.document-progression') --}}
@if($sommaire)

Sommaire

@foreach ($pages as $page)

{{ $page->name }}


@php $inputs = $page ->inputs() ->orderBy('position', 'asc') ->get(); $numerotationTitre = 0; $numerotationSousTitre = 0; @endphp @foreach ($inputs as $title) @if ($title->type->name == 'title') @php $numerotationTitre++; $numerotationSousTitre = 0; @endphp

{{$numerotationTitre."- ".$title->display_name }}

@elseif($title->type->name == 'subtitle') @php $numerotationSousTitre++ @endphp
{{ $numerotationSousTitre."- ".$title->display_name }}
@endif
@endforeach @endforeach
@endif

Aperçu

Votre document
@if($sommaire)

Sommaire

@foreach ($pages as $key=>$page) @php $inputs = $page ->inputs() ->orderBy('position', 'asc') ->get(); $numerotationTitre = 0; $numerotationSousTitre = 0; @endphp @foreach ($inputs as $title) @if ($title->type->name == 'title') @php $numerotationTitre++; $numerotationSousTitre = 0; @endphp

{{$numerotationTitre."- ".$title->display_name }}

@elseif($title->type->name == 'subtitle') @php $numerotationSousTitre++ @endphp
{{ $numerotationSousTitre."- ".$title->display_name }}
@endif @endforeach @endforeach
@endif