@php $weather = $widget['data']['weather']; $weatherMissing = $widget['data']['weatherMissing']; @endphp

{{ __('dashboard.weather') }}

@if ($weatherMissing)

{{ __('dashboard.weather_no_location') }} {{ __('admin.nav_settings') }} →

@elseif ($weather === null)

{{ __('dashboard.weather_unavailable') }}

@else
{{ $weather['temperature'] !== null ? number_format($weather['temperature'], 1) . ' °C' : '—' }}
@include('admin.partials._weather-icon', ['icon' => $weather['icon']]) {{ $weather['label'] }}
{{ __('dashboard.precipitation') }}
{{ $weather['precipitation'] !== null ? number_format($weather['precipitation'], 1) . ' mm' : '—' }}
{{ __('dashboard.snow_depth') }}
{{ $weather['snow_depth'] !== null ? number_format($weather['snow_depth'], 1) . ' cm' : '—' }}
{{ __('dashboard.wind_speed') }}
{{ $weather['wind_speed'] !== null ? number_format($weather['wind_speed'], 1) . ' km/h' : '—' }}
{{ __('dashboard.humidity') }}
{{ $weather['humidity'] !== null ? round($weather['humidity']) . ' %' : '—' }}
@endif