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

METAR/TAF data could not be retrieved

@else
Conditions {{$data->flight_category}}, @if($unit_temp === 'f') {{$data->temperature->fahrenheit}}°F @else {{$data->temperature->celsius}}°C @endif @if($data->visibility->miles) , visibility @if($unit_dist === 'km') {{intval(str_replace(',', '', $data->visibility->meters)) / 1000}} @else {{$data->visibility->miles}} @endif @endif @if($data->humidity_percent) , {{$data->humidity_percent}}% humidity @endif
Barometer {{ $data->barometer->hg }}hg/{{ $data->barometer->mb }}mb
Clouds @foreach($data->clouds as $cloud)

{{$cloud->text}} @ @if($unit_alt === 'ft') {{$cloud->base_feet_agl}} @else {{$cloud->base_meters_agl}} @endif {{$unit_alt}}

@endforeach
Wind {{$data->wind->speed_kts}}kts @ {{$data->wind->degrees}}, @if(property_exists($data->wind, 'gusts_kts')) gusts to {{$data->wind->gusts_kts}} @endif
Metar
{{$data->raw_text}}
Updated {{$data->observed}}
@endif