@php $t = fn ($key) => $strings[$key] ?? match($key) {'support'=>'Support PBAT','support-terms'=>'Contributor Terms and Conditions',default=>''}; $path = fn ($code, $target = 'home', $slug = null) => route('public.content', ['locale' => $code, 'section' => $target === 'home' ? null : $target, 'slug' => $slug]); $brand = $settings['brand_name'] ?? 'PBAT'; $activeLanguage = $locales->firstWhere('code', $locale); $sections = $menus->where('section', '!=', 'home'); $icons = ['profile'=>'01','timeline'=>'02','records'=>'03','projects'=>'04','economy'=>'05']; @endphp @php $publicLogo = \App\Branding::image($settings->all(),'public_logo'); $favicon = \App\Branding::image($settings->all(),'favicon'); @endphp {{ $record->title ?? $t($section) }} · {{ $brand }} @if($section === 'home') @endif
@if($publicLogo)@else{{ $brand }}{{ $t('eyebrow') }}@endif
{{ $activeLanguage->name ?? strtoupper($locale) }}
@if ($section === 'home') @php $customBanners=\App\HomepageBanners::active($settings->all(),$locale); @endphp @if(count($customBanners))
@foreach($customBanners as $slide) @endforeach
{{ $t('notice') }}
@else

{{ $t('eyebrow') }}

{{ $t('hero') }}

{{ $t('intro') }}

@foreach($sections->whereIn('section', ['records','projects','economy']) as $menu) @endforeach
{{ $brand }} / {{ $t('browse') }}
@foreach ($sections as $menu) {{ $icons[$menu->section] ?? '•' }}{{ $t($menu->label_key) }} @endforeach
{{ $t('notice') }}
@endif

{{ $brand }}

{{ $t('browse') }}

@foreach ($sections as $menu) {{ $t($menu->label_key) }} @endforeach

{{ $t('notice') }}

@if(isset($projectRegions))

Project catalogue

Find ongoing projects by state

Browse sourced project records across the 36 states and FCT. Statuses reflect the recorded review date.

@include('project-search',['searchAction'=>$path($locale,'projects'),'searchRegions'=>$projectRegions,'searchFilters'=>['status'=>'ongoing']])
@endif @if(isset($latestRecords) && $latestRecords->isNotEmpty())

{{ $t('records') }}

{{ $t('browse') }} →
@foreach($latestRecords as $entry) @endforeach
@endif @elseif (in_array($section,['support','support-terms'],true)) @include('support-page') @elseif (isset($record))
← {{ $t('back') }}

{{ $t($section) }}

{{ $record->title }}

{{ $t($record->evidence_type) }}

@include('metadata', ['entry' => $record])

{{ $record->summary }}

{{ $record->body }}

{{ $t('sources') }}

@else

{{ $t('eyebrow') }}

{{ $t($section) }}

@if ($section === 'projects') @include('project-search',['searchAction'=>$path($locale,'projects'),'searchRegions'=>$regions,'searchFilters'=>$projectFilters])

Showing published project records with cited sources. Projects without a recorded status are not counted as ongoing.

@endif
@forelse ($records as $entry)

{{ $t($entry->evidence_type) }}

{{ $entry->title }}

@include('metadata')

{{ $entry->summary }}

@empty

{{ $t('empty') }}

@endforelse
@endif
@include('public-footer')