set country on the airline, in admin and installer #191

This commit is contained in:
Nabeel Shahzad
2018-02-12 10:51:04 -06:00
parent 61dc0a046d
commit 62506a26a1
21 changed files with 11199 additions and 2578 deletions

View File

@@ -29,9 +29,15 @@
</div>
<div class="row">
<!-- Active Field -->
<div class="form-group col-sm-6">
{!! Form::label('country', 'Country:') !!} <br/>
{!! Form::select('country', $countries, null, ['class' => 'form-control select2' ]); !!}
<p class="text-danger">{{ $errors->first('country') }}</p>
</div>
<div class="form-group col-sm-6">
{!! Form::label('active', 'Active:') !!}
<br />
<label class="checkbox-inline">
{!! Form::hidden('active', 0, false) !!}
{!! Form::checkbox('active', 1, null) !!}

View File

@@ -1,7 +1,6 @@
<table class="table table-hover table-responsive" id="airlines-table">
<thead>
<th>Code</th>
<th>IATA</th>
<th>Name</th>
<th class="text-center">Active</th>
<th></th>
@@ -9,8 +8,13 @@
<tbody>
@foreach($airlines as $al)
<tr>
<td>{!! $al->code !!}</td>
<td>{!! $al->iata !!}</td>
<td>
@if(filled($al->country))
<span class="flag-icon flag-icon-{!! $al->country !!}"></span>
&nbsp;
@endif
<a href="{!! route('admin.airlines.edit', [$al->id]) !!}">{!! $al->code !!}</a>
</td>
<td>{!! $al->name !!}</td>
<td class="text-center">
@if($al->active == 1)