@extends('layouts.app')
@section('title', 'Stations')
@section('page-title', 'Stations & Networks')
@section('content')
{{-- Filters --}}
{{-- 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 }}
| Station |
Type |
Region |
Location |
Affiliation |
|
@forelse($stations as $station)
| {{ $station->name }} |
{{ $station->type }}
|
{{ $station->region?->name ?? '—' }} |
{{ $station->location ?: '—' }} |
{{ $station->affiliation_label }}
|
Edit
|
@empty
| No stations found |
@endforelse
@if($stations->hasPages())
{{ $stations->links() }}
@endif
@endsection