added Aircraft table

This commit is contained in:
Nabeel Shahzad 2017-06-08 20:37:05 -05:00
parent 2a167c9337
commit e22f621216
8 changed files with 18 additions and 5 deletions

View File

@ -1,4 +1,4 @@
@extends('layouts.admin.app')
@extends('admin.app')
@section('content')
<section class="content-header">

View File

@ -80,7 +80,7 @@
</header>
<!-- Left side column. contains the logo and sidebar -->
@include('layouts.admin.sidebar')
@include('admin.sidebar')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
@yield('content')
@ -88,7 +88,7 @@
<!-- Main Footer -->
<footer class="main-footer" style="max-height: 100px;text-align: center">
<strong>Copyright © 2016 <a href="#">Company</a>.</strong> All rights reserved.
<strong>Copyright © 2017 <a href="#">phpvms</a>.</strong> All rights reserved.
</footer>
</div>
@ -108,7 +108,7 @@
<!-- Branding Image -->
<a class="navbar-brand" href="{!! url('/') !!}">
InfyOm Generator
phpVMS
</a>
</div>

View File

@ -1 +1,2 @@
<li><a href="{!! url('/admin/airlines') !!}">airlines</a></li>
<li><a href="{!! url('/admin/aircraft') !!}">aircraft</a></li>

View File

@ -33,7 +33,7 @@
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
@include('layouts.admin.menu')
@include('admin.menu')
</ul>
<!-- /.sidebar-menu -->
</section>

View File

@ -30,4 +30,16 @@ Route::group([
'prefix' => 'admin',
], function () {
Route::resource('airlines', 'AirlinesController');
Route::resource('aircraft', 'AircraftController');
// Route::get('admin/aircrafts', ['as'=> 'admin.aircrafts.index', 'uses' => 'AircraftController@index']);
// Route::post('admin/aircrafts', ['as'=> 'admin.aircrafts.store', 'uses' => 'AircraftController@store']);
// Route::get('admin/aircrafts/create', ['as'=> 'admin.aircrafts.create', 'uses' => 'AircraftController@create']);
// Route::put('admin/aircrafts/{aircrafts}', ['as'=> 'admin.aircrafts.update', 'uses' => 'AircraftController@update']);
// Route::patch('admin/aircrafts/{aircrafts}', ['as'=> 'admin.aircrafts.update', 'uses' => 'AircraftController@update']);
// Route::delete('admin/aircrafts/{aircrafts}', ['as'=> 'admin.aircrafts.destroy', 'uses' => 'AircraftController@destroy']);
// Route::get('admin/aircrafts/{aircrafts}', ['as'=> 'admin.aircrafts.show', 'uses' => 'AircraftController@show']);
// Route::get('admin/aircrafts/{aircrafts}/edit', ['as'=> 'admin.aircrafts.edit', 'uses' => 'AircraftController@edit']);
});