@extends('layouts.app') @php $formatLabels = [ 'aaib_report' => 'Air Accidents (AAIB)', 'maib_report' => 'Marine Accidents (MAIB)', 'raib_report' => 'Rail Accidents (RAIB)', ]; $formatPlurals = [ 'aaib_report' => 'Air Accident Reports', 'maib_report' => 'Marine Accident Reports', 'raib_report' => 'Rail Accident Reports', ]; if (isset($isRecent) && $isRecent) { $pageTitle = 'Recent Accident Reports'; $metaDescription = "Browse the latest UK Accident reports. View the most recently published official investigations."; } else { $currentFormat = session('search_format'); $formatName = ($currentFormat && $currentFormat !== 'all') ? ($formatLabels[$currentFormat] ?? 'Accidents') : 'Accidents'; $formatNamePlural = ($currentFormat && $currentFormat !== 'all') ? ($formatPlurals[$currentFormat] ?? 'Accident Reports') : 'Accident Reports'; $pageTitle = $query ? ucfirst($query) . ' - ' . $formatNamePlural : $formatNamePlural; $metaDescription = $query ? "Search and browse " . number_format($decisions->total()) . " " . $formatName . " reports matching '" . $query . "'. Access official documents and safety recommendations." : "Browse the complete database of UK " . $formatName . " reports. Search through over " . number_format($decisions->total()) . " official investigations and safety documents."; } @endphp @section('title', $pageTitle) @section('page_heading', $pageTitle) @section('meta_description', $metaDescription) @section('content')
{{ $decisions->withQueryString()->links() }}
@endsection