specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125

This commit is contained in:
Nabeel Shahzad
2018-02-24 15:38:25 -06:00
parent 910c0e0eab
commit 58e0f50c48
28 changed files with 1063 additions and 265 deletions
@@ -10,7 +10,7 @@
<div class="row">
<div class="col-md-12">
<table class="table">
<table class="table table-hover">
<tr>
<td>Status</td>
<td>
@@ -23,6 +23,7 @@
@else
<div class="badge badge-info">
@endif
{!! PirepState::label($pirep->state) !!}</div>
<span class="description" style="padding-left: 20px;">
@@ -71,11 +72,15 @@
</div>
</div>
{{--
Show the fields that have been entered
--}}
@if(count($pirep->fields) > 0)
<div class="row">
<div class="col-md-12">
<h3 class="description">fields</h3>
<table class="table">
<table class="table table-hover">
<thead>
<th>Name</th>
<th>Value</th>
@@ -93,6 +98,32 @@
</div>
@endif
{{--
Show the fares that have been entered
--}}
@if(count($pirep->fares) > 0)
<div class="row">
<div class="col-md-12">
<h3 class="description">fares</h3>
<table class="table table-hover">
<thead>
<th>Class</th>
<th>Count</th>
</thead>
<tbody>
@foreach($pirep->fares as $fare)
<tr>
<td>{!! $fare->fare->name !!} ({!! $fare->fare->code !!})</td>
<td>{!! $fare->count !!}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endif
@include("layouts.${SKIN_NAME}.pireps.map")
@if(count($pirep->acars_logs) > 0)