Rename 'Airlines' model to 'Airline'
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
{!! Form::open(['route' => 'airlines.store']) !!}
|
||||
{!! Form::open(['route' => 'admin.airlines.store']) !!}
|
||||
|
||||
@include('admin.airlines.fields')
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
{!! Form::model($airlines, ['route' => ['airlines.update', $airlines->id], 'method' => 'patch']) !!}
|
||||
{!! Form::model($airlines, ['route' => ['admin.airlines.update', $airlines->id], 'method' => 'patch']) !!}
|
||||
|
||||
@include('admin.airlines.fields')
|
||||
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
<!-- Submit Field -->
|
||||
<div class="form-group col-sm-12">
|
||||
{!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
|
||||
<a href="{!! route('airlines.index') !!}" class="btn btn-default">Cancel</a>
|
||||
<a href="{!! route('admin.airlines.index') !!}" class="btn btn-default">Cancel</a>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<section class="content-header">
|
||||
<h1 class="pull-left">Airlines</h1>
|
||||
<h1 class="pull-right">
|
||||
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('airlines.create') !!}">Add New</a>
|
||||
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('admin.airlines.create') !!}">Add New</a>
|
||||
</h1>
|
||||
</section>
|
||||
<div class="content">
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<div class="box-body">
|
||||
<div class="row" style="padding-left: 20px">
|
||||
@include('admin.airlines.show_fields')
|
||||
<a href="{!! route('airlines.index') !!}" class="btn btn-default">Back</a>
|
||||
<a href="{!! route('admin.airlines.index') !!}" class="btn btn-default">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
<td>{!! $al->name !!}</td>
|
||||
<td>{!! $al->active !!}</td>
|
||||
<td>
|
||||
{!! Form::open(['route' => ['airlines.destroy', $al->id], 'method' => 'delete']) !!}
|
||||
{!! Form::open(['route' => ['admin.airlines.destroy', $al->id], 'method' => 'delete']) !!}
|
||||
<div class='btn-group'>
|
||||
<a href="{!! route('airlines.show', [$al->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
|
||||
<a href="{!! route('airlines.edit', [$al->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
|
||||
<a href="{!! route('admin.airlines.show', [$al->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
|
||||
<a href="{!! route('admin.airlines.edit', [$al->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
|
||||
{!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<th>Flight #</th>
|
||||
<th>Dep</th>
|
||||
<th>Arr</th>
|
||||
<th>Alt</th>
|
||||
<th>Route</th>
|
||||
<th>Dpt Time</th>
|
||||
<th>Arr Time</th>
|
||||
@@ -15,12 +14,18 @@
|
||||
@foreach($flights as $flight)
|
||||
<tr>
|
||||
<td>
|
||||
{!! $flight->airline_id !!}/{!! $flight->flight_number !!}
|
||||
(C: {!! $flight->route_code !!} L: {!! $flight->route_leg !!})
|
||||
{!! $flight->airline->code !!}{!! $flight->flight_number !!}
|
||||
@if($flight->route_code)
|
||||
(C: {!! $flight->route_code !!} L: {!! $flight->route_leg !!})
|
||||
@endif
|
||||
</td>
|
||||
<td>{!! $flight->dpt_airport->icao !!}</td>
|
||||
<td>{!! $flight->arr_airport->icao !!}</td>
|
||||
<td>{!! $flight->alt_airport->icao !!}</td>
|
||||
<td>
|
||||
{!! $flight->arr_airport->icao !!}
|
||||
@if($flight->alt_airport)
|
||||
(Alt: {!! $flight->alt_airport->icao !!})
|
||||
@endif
|
||||
</td>
|
||||
<td>{!! $flight->route !!}</td>
|
||||
<td>{!! $flight->dpt_time !!}</td>
|
||||
<td>{!! $flight->arr_time !!}</td>
|
||||
|
||||
Reference in New Issue
Block a user