@if(isset($weather['error']) && $weather['error'])
{{ $weather['message'] ?? 'Unable to fetch weather data.' }}
@else
@foreach($weather['daily']['time'] as $i => $date)
@php
$image = \AppHelper::instance()->getWeatherInfo($weather['daily']['weathercode'][$i])
@endphp
{{ \Carbon\Carbon::parse($date)->shortDayName }}
{{ $image['icon'] }}
{{--
 }})
--}}
{{ $weather['daily']['temperature_2m_max'][$i] }}
{{ $weather['daily']['temperature_2m_min'][$i] }}
@endforeach
@endif