2017-12-03 14:48:33 +08:00
|
|
|
<div id="pirep_{!! $pirep->id !!}_container">
|
|
|
|
<div class="card border-blue-bottom pirep_card_container">
|
|
|
|
<div class="card-block" style="min-height: 0px">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-2 text-center">
|
|
|
|
<h5>
|
|
|
|
<a class="text-c"
|
2018-01-24 05:48:30 +08:00
|
|
|
href="{!! route('admin.pireps.edit', [$pirep->id]) !!}">
|
2017-12-20 23:05:56 +08:00
|
|
|
{!! $pirep->ident !!}
|
2017-12-03 14:48:33 +08:00
|
|
|
</a>
|
|
|
|
</h5>
|
|
|
|
<div>
|
2018-01-02 06:26:02 +08:00
|
|
|
@if($pirep->state === PirepState::PENDING)
|
|
|
|
<div class="badge badge-warning">
|
2017-12-20 10:19:36 +08:00
|
|
|
@elseif($pirep->state === PirepState::ACCEPTED)
|
2018-01-02 06:26:02 +08:00
|
|
|
<div class="badge badge-success">
|
|
|
|
@elseif($pirep->state === PirepState::REJECTED)
|
|
|
|
<div class="badge badge-danger">
|
2017-12-03 14:48:33 +08:00
|
|
|
@else
|
2018-01-02 06:26:02 +08:00
|
|
|
<div class="badge badge-info">
|
2017-12-03 14:48:33 +08:00
|
|
|
@endif
|
2018-01-02 06:26:02 +08:00
|
|
|
{!! PirepState::label($pirep->state) !!}</div>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<div class="row">
|
2017-12-24 01:58:17 +08:00
|
|
|
<div class="col-sm-6">
|
2017-12-03 14:48:33 +08:00
|
|
|
<div>
|
|
|
|
<span class="description">DEP </span>
|
|
|
|
{!! $pirep->dpt_airport->icao !!}
|
|
|
|
<span class="description">ARR </span>
|
|
|
|
{!! $pirep->arr_airport->icao !!}
|
|
|
|
</div>
|
|
|
|
<div><span class="description">Flight Time </span>
|
2017-12-16 08:02:35 +08:00
|
|
|
{!! Utils::minutesToTimeString($pirep->flight_time) !!}
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
|
|
|
<div><span class="description">Aircraft </span>
|
|
|
|
{!! $pirep->aircraft->registration !!}
|
|
|
|
({!! $pirep->aircraft->name !!})
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span class="description">Flight Level </span>
|
|
|
|
{!! $pirep->level !!}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span class="description">File Date </span>
|
2017-12-24 01:58:17 +08:00
|
|
|
{!! show_datetime($pirep->created_at) !!}
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-24 01:58:17 +08:00
|
|
|
<div class="col-sm-6">
|
2018-01-12 05:07:11 +08:00
|
|
|
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-01-04 10:39:24 +08:00
|
|
|
<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])
|
2018-01-04 10:39:24 +08:00
|
|
|
</div>
|
2017-12-03 14:48:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|