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

@lang('frontend.widgets.weather.metarnotretrieved')

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