Manuals

Handleidingen per merk, apparaattype en model

{{-- SEARCH --}}
@if($search !== '') Wissen @endif
{{-- RESULT COUNT --}}
@php $totalManuals = $documentsByBrand ->flatten(2) ->count(); @endphp

{{ $totalManuals }} {{ $totalManuals === 1 ? 'manual' : 'manuals' }} gevonden

@if($documentsByBrand->isEmpty())

Geen manuals gevonden

Pas je zoekopdracht aan.

@else {{-- BRANDS --}} @foreach($brands as $brand) @php $brandModels = $documentsByBrand[$brand->id] ?? collect(); @endphp @if($brandModels->isNotEmpty())
{{-- BRAND HEADER --}}

{{ $brand->name }}

{{-- GROUP MODELS BY DEVICE TYPE --}} @php $modelsByType = $brandModels->groupBy(function ($modelDocuments) { $printer = $modelDocuments->first()->printer; return $printer?->type ?: 'Overig'; }); @endphp @foreach($modelsByType as $typeName => $typeModels) {{-- DEVICE TYPE --}}

{{ $typeName }}

{{ $typeModels->count() }} {{ $typeModels->count() === 1 ? 'machine' : 'machines' }}
{{-- MACHINES / MODELS --}}
@foreach($typeModels as $modelDocuments) @php $printer = $modelDocuments->first()->printer; @endphp
{{-- MACHINE HEADER --}}
{{ $printer->model }}

{{ $modelDocuments->count() }} {{ $modelDocuments->count() === 1 ? 'manual' : 'manuals' }}

Openen
{{-- MANUALS --}}
@foreach($modelDocuments->sortBy('title') as $document)
{{ $document->title }}
{{-- LANGUAGE --}}
{{ $document->language ? strtoupper($document->language) : '—' }}
{{-- VERSION --}}
{{ $document->version ?: '—' }}
{{-- PDF --}}
@endforeach
@endforeach
@endforeach
@endif @endforeach @endif