2018-01-10 02:48:24 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="description">flight map</h3>
|
|
|
|
<div class="box-body">
|
2018-03-13 06:58:12 +08:00
|
|
|
<div id="map" style="width: {{ $config['width'] }}; height: {{ $config['height'] }}"></div>
|
2018-01-10 02:48:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix" style="padding-top: 25px"></div>
|
|
|
|
|
|
|
|
<div id="flights_table" class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="description">flights</h3>
|
|
|
|
@if(!filled($pireps))
|
|
|
|
<div class="text-center">There are no flights</div>
|
|
|
|
@endif
|
|
|
|
<table class="table">
|
|
|
|
@foreach($pireps as $pirep)
|
|
|
|
<tr>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $pirep->ident }}</td>
|
|
|
|
<td>{{ $pirep->dpt_airport_id }}</td>
|
|
|
|
<td>{{ $pirep->arr_airport_id }}</td>
|
2018-01-10 02:48:24 +08:00
|
|
|
<td>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ PirepStatus::label($pirep->status) }}
|
2018-01-10 02:48:24 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section('scripts')
|
2018-03-13 07:10:35 +08:00
|
|
|
<script>
|
|
|
|
phpvms.map.render_live_map({
|
|
|
|
'update_uri': '{!! url('/api/acars') !!}',
|
|
|
|
'pirep_uri': '{!! url('/api/pireps/{id}/acars/geojson') !!}',
|
|
|
|
'aircraft_icon': '{!! public_asset('/assets/img/acars/aircraft.png') !!}',
|
|
|
|
});
|
2018-01-10 02:48:24 +08:00
|
|
|
</script>
|
|
|
|
@endsection
|