2018-01-10 02:48:24 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="box-body">
|
2018-05-03 04:14:18 +08:00
|
|
|
|
|
|
|
<div id="map" style="width: {{ $config['width'] }}; height: {{ $config['height'] }}">
|
|
|
|
<div id="map-info-bar"
|
|
|
|
style="display: none;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 20px;
|
|
|
|
height: 100px;
|
|
|
|
z-index: 9999;
|
|
|
|
background-color:rgba(232, 232, 232, 0.9);
|
|
|
|
width: {{ $config['width'] }};">
|
|
|
|
<div style="float: left; margin-right: 30px; width: 50%;">
|
|
|
|
<h3 style="margin: 0" id="map_flight_id"></h3>
|
|
|
|
<p id="map_flight_info"></p>
|
|
|
|
</div>
|
|
|
|
<div style="float: left; margin-right: 30px;">
|
|
|
|
<p id="map_flight_stats_middle"></p>
|
|
|
|
</div>
|
|
|
|
<div style="float: left;">
|
|
|
|
<p id="map_flight_stats_right"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</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">
|
|
|
|
@if(!filled($pireps))
|
2018-04-09 09:51:27 +08:00
|
|
|
<div class="jumbotron text-center">There are no flights</div>
|
2018-01-10 02:48:24 +08:00
|
|
|
@endif
|
|
|
|
<table class="table">
|
|
|
|
@foreach($pireps as $pirep)
|
|
|
|
<tr>
|
2018-05-02 09:58:05 +08:00
|
|
|
<td>{{ $pirep->airline->code }}{{ $pirep->ident }}</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $pirep->dpt_airport_id }}</td>
|
|
|
|
<td>{{ $pirep->arr_airport_id }}</td>
|
2018-05-02 09:58:05 +08:00
|
|
|
<td>{{ $pirep->aircraft->name }}</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') !!}',
|
2018-05-03 04:14:18 +08:00
|
|
|
'pirep_uri': '{!! url('/api/pireps/{id}') !!}',
|
2018-03-13 07:10:35 +08:00
|
|
|
'aircraft_icon': '{!! public_asset('/assets/img/acars/aircraft.png') !!}',
|
2018-05-03 04:14:18 +08:00
|
|
|
'units': '{{ setting('units.distance') }}',
|
2018-03-13 07:10:35 +08:00
|
|
|
});
|
2018-01-10 02:48:24 +08:00
|
|
|
</script>
|
|
|
|
@endsection
|