2018-03-13 06:58:12 +08:00
|
|
|
<div id="pirep_{{ $pirep->id }}_container">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="card border-blue-bottom pirep_card_container">
|
2017-12-03 14:48:33 +08:00
|
|
|
<div class="card-block" style="min-height: 0px">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-2 text-center">
|
|
|
|
<h5>
|
|
|
|
<a class="text-c"
|
|
|
|
href="{{ route('admin.pireps.edit', [$pirep->id]) }}">
|
|
|
|
{{ $pirep->airline->code }}{{ $pirep->ident }}
|
|
|
|
</a>
|
|
|
|
</h5>
|
2020-10-26 22:18:00 +08:00
|
|
|
<div id="pirep_{{ $pirep->id }}_status_container">
|
2020-02-02 02:05:56 +08:00
|
|
|
@if($pirep->state === PirepState::PENDING)
|
|
|
|
<div class="badge badge-warning">
|
|
|
|
@elseif($pirep->state === PirepState::ACCEPTED)
|
|
|
|
<div class="badge badge-success">
|
2018-01-02 06:26:02 +08:00
|
|
|
@elseif($pirep->state === PirepState::REJECTED)
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="badge badge-danger">
|
|
|
|
@else
|
|
|
|
<div class="badge badge-info">
|
|
|
|
@endif
|
|
|
|
{{ PirepState::label($pirep->state) }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
2017-12-03 14:48:33 +08:00
|
|
|
<div>
|
2018-02-23 05:29:25 +08:00
|
|
|
<span class="description">
|
|
|
|
<b>DEP</b>
|
2018-07-13 10:20:10 +08:00
|
|
|
{{ $pirep->dpt_airport_id }}
|
2018-02-23 05:29:25 +08:00
|
|
|
<b>ARR</b>
|
2018-07-13 10:20:10 +08:00
|
|
|
{{ $pirep->arr_airport_id }}
|
2018-02-23 05:29:25 +08:00
|
|
|
</span>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
2018-02-23 05:29:25 +08:00
|
|
|
<div>
|
|
|
|
<span class="description"><b>Flight Time</b>
|
2020-02-12 01:32:41 +08:00
|
|
|
@minutestotime($pirep->flight_time)
|
2018-02-23 05:29:25 +08:00
|
|
|
</span>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
2018-05-30 00:04:28 +08:00
|
|
|
@if($pirep->aircraft)
|
2020-02-02 02:05:56 +08:00
|
|
|
<div><span class="description"><b>Aircraft</b>
|
2018-05-30 00:04:28 +08:00
|
|
|
{{ $pirep->aircraft->registration }}
|
|
|
|
({{ $pirep->aircraft->name }})
|
|
|
|
</span>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2018-05-30 00:04:28 +08:00
|
|
|
@endif
|
2018-02-23 05:29:25 +08:00
|
|
|
@if(filled($pirep->level))
|
2020-02-02 02:05:56 +08:00
|
|
|
<div>
|
2018-02-23 05:29:25 +08:00
|
|
|
<span class="description"><b>Flight Level</b>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $pirep->level }}
|
2018-02-23 05:29:25 +08:00
|
|
|
</span>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2018-02-23 05:29:25 +08:00
|
|
|
@endif
|
|
|
|
<div>
|
|
|
|
<span class="description"><b>Filed Using</b>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ PirepSource::label($pirep->source) }}
|
2020-02-02 02:05:56 +08:00
|
|
|
@if(filled($pirep->source_name))
|
|
|
|
({{ $pirep->source_name }})
|
|
|
|
@endif
|
2018-02-23 05:29:25 +08:00
|
|
|
</span>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-02-23 05:29:25 +08:00
|
|
|
<span class="description"><b>File Date</b>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ show_datetime($pirep->created_at) }}
|
2018-02-23 05:29:25 +08:00
|
|
|
</span>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2018-01-12 05:07:11 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div id="pirep_{{ $pirep->id }}_actionbar" class="pull-right">
|
2018-02-07 02:58:48 +08:00
|
|
|
@include('admin.pireps.actions', ['pirep' => $pirep, 'on_edit_page' => false])
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2018-01-04 10:39:24 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2020-10-26 22:18:00 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|