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

Weather

@foreach($weatherData as $city => $data)

{{ ucfirst($city) }}

{{ $data['temp'] }}°C

{{ $data['condition'] }}

H: {{ $data['high'] }}° L: {{ $data['low'] }}°
{{ $data['humidity'] }} humidity
@endforeach

5-Day Forecast

@foreach($forecast as $day)

{{ $day['day'] }}

{{ $day['condition'] }}

{{ $day['high'] }}° {{ $day['low'] }}°
@endforeach
@if(count($alerts) > 0)

Weather Alerts

@foreach($alerts as $alert)

{{ ucfirst($alert['type']) }}

{{ $alert['message'] }}

Issued {{ $alert['issued'] }}

@endforeach
@endif
@endsection