2018-04-03 11:35:25 +08:00
|
|
|
{{--
|
|
|
|
|
|
|
|
If you want to edit this, you can reference the CheckWX API docs:
|
|
|
|
https://api.checkwx.com/#metar-decoded
|
|
|
|
|
|
|
|
--}}
|
|
|
|
@if(!$metar)
|
|
|
|
<p>METAR/TAF data could not be retrieved</p>
|
|
|
|
@else
|
2018-04-04 08:21:42 +08:00
|
|
|
<table class="table table-striped">
|
2018-04-03 11:35:25 +08:00
|
|
|
<tr>
|
|
|
|
<td>Conditions</td>
|
|
|
|
<td>
|
2018-04-05 06:14:46 +08:00
|
|
|
{{ $metar->getCategory() }}
|
|
|
|
@if($metar->getTemperature())
|
|
|
|
|
|
|
|
{{$metar->getTemperature()}}°{{strtoupper($unit_temp)}}
|
|
|
|
,
|
2018-04-03 11:35:25 +08:00
|
|
|
@endif
|
2018-04-05 06:14:46 +08:00
|
|
|
visibility
|
|
|
|
{{$metar->getVisibility()}}{{$unit_dist}}
|
2018-04-03 11:35:25 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Barometer</td>
|
2018-04-05 06:14:46 +08:00
|
|
|
<td>{{ $metar->getPressure('hg') }} Hg
|
|
|
|
/ {{ $metar->getPressure('mb') }} MB
|
2018-04-03 11:35:25 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Clouds</td>
|
|
|
|
<td>
|
|
|
|
@foreach($metar->getClouds() as $cloud)
|
|
|
|
<p>
|
2018-04-05 06:14:46 +08:00
|
|
|
{{$cloud['amount']}} @ {{$cloud['base_height']}} {{ $unit_alt }}
|
2018-04-03 11:35:25 +08:00
|
|
|
</p>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Wind</td>
|
|
|
|
<td>
|
2018-04-05 06:14:46 +08:00
|
|
|
{{$wind['speed']}} kts
|
|
|
|
@ {{$wind['direction']}}°
|
|
|
|
@if($wind['gusts'])
|
|
|
|
gusts to {{$wind['gusts']}}
|
2018-04-03 11:35:25 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>METAR</td>
|
|
|
|
<td>
|
|
|
|
<div style="line-height:1.5em;min-height: 3em;">
|
|
|
|
{{ $metar->getRawMetar() }}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Updated</td>
|
2018-04-05 06:14:46 +08:00
|
|
|
<td>{{$metar->getLastUpdate()}}</td>
|
2018-04-03 11:35:25 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
@endif
|