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

{{ __('METAR/TAF data could not be retrieved') }}

@else @if($metar['clouds']) @endif @if($metar['remarks']) @endif
{{ __('Conditions') }} {{ $metar['category'] }} {{ $metar['temperature'][$unit_temp] }} °{{strtoupper($unit_temp)}} @if($metar['visibility']) , {{ __('visibility') }} {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}} @endif @if($metar['humidity']) , {{ $metar['humidity'] }}% {{ __('humidity') }} @endif @if($metar['dew_point']) , {{ __('dew point') }} {{ $metar['dew_point'][$unit_temp] }} °{{strtoupper($unit_temp)}} @endif
{{ __('Barometer') }} {{ number_format($metar['barometer'], 2) }} hPa / {{ number_format($metar['barometer_in'], 2) }} inHg
{{ __('Clouds') }} @if($unit_alt === 'ft') {{$metar['clouds_report_ft']}} @else {{ $metar['clouds_report'] }} @endif
{{ __('Wind') }} {{$metar['wind_speed']}} kts {{ __('from') }} {{$metar['wind_direction_label']}} ({{$metar['wind_direction']}}°) @if($metar['wind_gust_speed']) {{ __('gusts to').' '.$metar['wind_gust_speed'] }} @endif
{{ __('METAR') }}
{{ $metar['raw'] }}
{{ __('Remarks') }} {{ $metar['remarks'] }}
{{ __('Updated') }} {{$metar['observed_time']}} ({{$metar['observed_age']}})
@endif