allow setting of IATA code for airline

This commit is contained in:
Nabeel Shahzad
2017-07-22 23:03:39 -05:00
parent e9252b4e1c
commit 9a08586564
6 changed files with 18 additions and 1 deletions

View File

@@ -4,6 +4,11 @@
{!! Form::text('code', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group col-sm-6">
{!! Form::label('iata', 'IATA:') !!}
{!! Form::text('iata', null, ['class' => 'form-control']) !!}
</div>
<!-- Name Field -->
<div class="form-group col-sm-6">
{!! Form::label('name', 'Name:') !!}

View File

@@ -10,6 +10,11 @@
<p>{!! $airlines->code !!}</p>
</div>
<div class="form-group">
{!! Form::label('iata', 'IATA:') !!}
<p>{!! $airlines->iata !!}</p>
</div>
<!-- Name Field -->
<div class="form-group">
{!! Form::label('name', 'Name:') !!}

View File

@@ -1,6 +1,7 @@
<table class="table table-responsive" id="airlines-table">
<thead>
<th>Code</th>
<th>IATA</th>
<th>Name</th>
<th style="text-align: center;">Active</th>
<th colspan="3" style="text-align: right;">Action</th>
@@ -9,6 +10,7 @@
@foreach($airlines as $al)
<tr>
<td>{!! $al->code !!}</td>
<td>{!! $al->iata !!}</td>
<td>{!! $al->name !!}</td>
<td style="text-align: center;">
<i class="fa fa-{{$al->active == 1?"check":""}}-square-o" aria-hidden="true"