{{-- If you want to edit this, you can reference the CheckWX API docs: https://api.checkwx.com/#metar-decoded --}} @if(!$metar)

@lang('widgets.weather.metarnotretrieved')

@else @if($metar['clouds']) @endif @if($metar['remarks']) @endif
@lang('widgets.weather.conditions') {{ $metar['category'] }} {{ $metar['temperature'][$unit_temp] }} °{{strtoupper($unit_temp)}} @if($metar['visibility']) , @lang('widgets.weather.visibility') {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}} @endif @if($metar['humidity']) , {{ $metar['humidity'] }}% @lang('widgets.weather.humidity') @endif @if($metar['dew_point']) , @lang('widgets.weather.dewpoint') {{ $metar['dew_point'][$unit_temp] }} °{{strtoupper($unit_temp)}} @endif
@lang('widgets.weather.barometer') {{ number_format($metar['barometer'], 2) }} hPa / {{ number_format($metar['barometer_in'], 2) }} inHg
@lang('widgets.weather.clouds') @if($unit_alt === 'ft') {{$metar['clouds_report_ft']}} @else {{ $metar['clouds_report'] }} @endif
@lang('widgets.weather.wind') {{$metar['wind_speed']}} kts @lang('common.from') {{$metar['wind_direction_label']}} ({{$metar['wind_direction']}}°) @if($metar['wind_gust_speed']) @lang('widgets.weather.guststo') {{ $metar['wind_gust_speed'] }} @endif
@lang('common.metar')
{{ $metar['raw'] }}
@lang('widgets.weather.remarks') {{ $metar['remarks'] }}
@lang('widgets.weather.updated') {{$metar['observed_time']}} ({{$metar['observed_age']}})
@endif