@extends('layouts.app') @section('title', 'PACA — Political Affairs Communications Archive') @section('page-title', 'PACA — Political Affairs Communications Archive') @section('content')
{{-- Header banner --}}

⚡ Political Affairs Communications Archive

Evidence-based data for communicators — achievements, comparatives, rebuttals, and fast facts.

@if(auth()->user()->hasRole('admin') || auth()->user()->hasRole('supervisor')) Manage PACA → @endif
{{-- Tabs --}}
@foreach([ 'sectors' => ['⊞', 'Sectors'], 'fast-facts' => ['⚡', 'Fast Facts'], 'rebuttals' => ['🛡️', 'Rebuttals'], 'constituencies' => ['🗺️', 'Constituencies'], 'compare' => ['📊', 'NPP vs NDC'], ] as $key => [$icon, $label]) {{ $icon }}{{ $label }} @endforeach
{{-- ═══════════════ SECTORS ═══════════════ --}} @if($tab === 'sectors')

Click any sector to view NPP achievements and NPP vs NDC comparatives.

@endif {{-- ═══════════════ FAST FACTS ═══════════════ --}} @if($tab === 'fast-facts')
{{-- Selector --}}

⚡ Pre-Show Quick Prep

Select a sector to get your top facts in seconds.

@if($selectedSector)

{{ $selectedSector->icon }} {{ $selectedSector->name }}

{{ $selectedSector->achievements->count() }} achievement records

@endif
{{-- Facts list --}}
@if($selectedSector && $selectedSector->achievements->count())

{{ $selectedSector->icon }} Top Facts — {{ $selectedSector->name }}

@foreach($selectedSector->achievements as $a)
{{ $a->metric }} {{ $a->grade_label }}

{{ $a->title }}

@if($a->talking_point)
💬 {{ $a->talking_point }}
@endif
@endforeach
@elseif($selectedSector)

📂

No records for {{ $selectedSector->name }} yet

@else

Select a sector and click "Get My Facts"

Your top evidence-based talking points will appear here.

@endif
@endif {{-- ═══════════════ REBUTTALS ═══════════════ --}} @if($tab === 'rebuttals') {{-- Search + Filter --}}
Clear
@if($rebuttals->isEmpty())

🛡️

No rebuttals found matching your search.

@else
@foreach($rebuttals as $r)
@if($r->sector) {{ $r->sector->icon }} {{ $r->sector->name }} @endif {{ $r->evidence_grade === 'verified' ? '✓ Verified' : ($r->evidence_grade === 'published' ? '— Published' : '⚠ Claimed') }} @if($r->is_likely) ⚠ Likely to hear @endif

NDC CLAIM:

"{{ $r->claim }}"

NPP REBUTTAL:

{{ $r->rebuttal }}
@endforeach
@endif @endif {{-- ═══════════════ CONSTITUENCIES ═══════════════ --}} @if($tab === 'constituencies')
Clear
@forelse($constituencies as $c)

{{ $c->name }}

{{ $c->region?->name }} Region{{ $c->mp_name ? ' · MP: '.$c->mp_name : '' }}

{{ $c->seat_label }}
@if($c->npp_vote_pct || $c->ndc_vote_pct)
NPP {{ $c->npp_vote_pct }}% NDC {{ $c->ndc_vote_pct }}%
@endif @if($c->deliverables)
🏗️ {{ $c->deliverables }}
@endif
@empty

🗺️

No constituencies found.

@endforelse
@endif {{-- ═══════════════ NPP vs NDC COMPARE ═══════════════ --}} @if($tab === 'compare')
NPP vs NDC — Performance Comparison Evidence grades: ✓ Verified · — Published · ⚠ Claimed
@foreach($comparatives as $comp) @endforeach
Sector Indicator 🔵 NPP 🟢 NDC Winner Grade
{{ $comp->sector?->icon }} {{ $comp->sector?->name }} {{ $comp->indicator }} {{ $comp->npp_data }} {{ $comp->ndc_data }} {{ $comp->edge_label }} {{ $comp->npp_grade === 'verified' ? '✓' : '—' }} {{ ucfirst($comp->npp_grade) }}
@endif
@endsection