@extends('components.layout') @section('title', 'Traffic & Transport | ' . ($settings['site_name'] ?? 'LOCAL PULSE')) @section('content')

Traffic & Transport

Current Incidents

@foreach($trafficIncidents as $incident)
@switch($incident['type']) @case('accident') @break @case('congestion') @break @case('roadwork') @break @endswitch

{{ $incident['location'] }}

{{ $incident['status'] }} Delay: {{ $incident['delay'] }} {{ $incident['time'] }}
@endforeach
@if($trafficArticles->isNotEmpty())

Latest Traffic News

@foreach($trafficArticles as $article)

{{ $article->title }}

{{ $article->published_at?->format('d M Y') }}

@endforeach
@endif
@endsection