@extends('layouts.app') @section('title', 'Stations') @section('page-title', 'Stations & Networks') @section('content')
{{-- Filters --}}
Clear + Add Station
{{-- Summary pills --}} @php $nppCount = \App\Models\Station::where('political_affiliation','pro_npp')->count(); $neutCount = \App\Models\Station::where('political_affiliation','neutral')->count(); $ndcCount = \App\Models\Station::where('political_affiliation','pro_ndc')->count(); @endphp
Total {{ $stations->total() }}
Pro NPP {{ $nppCount }}
Neutral {{ $neutCount }}
Pro NDC {{ $ndcCount }}
@forelse($stations as $station) @empty @endforelse
Station Type Region Location Affiliation
{{ $station->name }} {{ $station->type }} {{ $station->region?->name ?? '—' }} {{ $station->location ?: '—' }} {{ $station->affiliation_label }} Edit
@csrf @method('DELETE')
No stations found
@if($stations->hasPages())
{{ $stations->links() }}
@endif
@endsection