@extends('layouts.app') @php $formatLabels = [ 'employment_tribunal_decision' => 'Employment Tribunal', 'employment_appeal_tribunal_decision' => 'Employment Appeal Tribunal', 'utaac_decision' => 'Administrative Appeals (UTAAC)', 'residential_property_tribunal_decision' => 'Residential Property Tribunal', ]; $formatPlurals = [ 'employment_tribunal_decision' => 'Employment Tribunals', 'employment_appeal_tribunal_decision' => 'Employment Appeal Tribunals', 'utaac_decision' => 'Administrative Appeals (UTAAC)', 'residential_property_tribunal_decision' => 'Residential Property Tribunals', ]; if (isset($isRecent) && $isRecent) { $pageTitle = 'Recent Tribunals'; $metaDescription = "Browse the latest UK Tribunal decisions. View the most recently published official judgments and court outcomes."; } else { $currentFormat = session('search_format'); $formatName = ($currentFormat && $currentFormat !== 'all') ? ($formatLabels[$currentFormat] ?? 'Tribunals') : 'Tribunals'; $formatNamePlural = ($currentFormat && $currentFormat !== 'all') ? ($formatPlurals[$currentFormat] ?? 'Tribunals') : 'Tribunals'; $pageTitle = $query ? ucfirst($query) . ' - ' . $formatNamePlural : $formatNamePlural; $metaDescription = $query ? "Search and browse " . number_format($decisions->total()) . " " . $formatName . " decisions matching '" . $query . "'. Access official court documents, outcomes, and case histories." : "Browse the complete database of UK " . $formatName . " decisions. Search through over " . number_format($decisions->total()) . " official judgments, court outcomes, and case documents."; } @endphp @section('title', $pageTitle) @section('page_heading', $pageTitle) @section('meta_description', $metaDescription) @section('content')
{{ $decisions->withQueryString()->links() }}
@endsection