Fix rank image field
This commit is contained in:
@@ -52,10 +52,10 @@ class AircraftController extends BaseController
|
|||||||
public function store(CreateAircraftRequest $request)
|
public function store(CreateAircraftRequest $request)
|
||||||
{
|
{
|
||||||
$input = $request->all();
|
$input = $request->all();
|
||||||
$this->aircraftRepository->create($input);
|
$aircraft = $this->aircraftRepository->create($input);
|
||||||
|
|
||||||
Flash::success('Aircraft saved successfully.');
|
Flash::success('Aircraft saved successfully.');
|
||||||
return redirect(route('admin.aircraft.index'));
|
return redirect(route('admin.aircraft.edit', ['id' => $aircraft->id]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<table class="table table-hover table-responsive" id="aircrafts-table">
|
<table class="table table-hover table-responsive" id="aircrafts-table">
|
||||||
<thead>
|
<thead>
|
||||||
<th>Subfleet</th>
|
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
|
<th>Subfleet</th>
|
||||||
{{--<th style="text-align: center;">ICAO</th>--}}
|
{{--<th style="text-align: center;">ICAO</th>--}}
|
||||||
<th style="text-align: center;">Registration</th>
|
<th style="text-align: center;">Registration</th>
|
||||||
<th style="text-align: center;">Hours</th>
|
<th style="text-align: center;">Hours</th>
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($aircraft as $ac)
|
@foreach($aircraft as $ac)
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td>
|
||||||
<td>
|
<td>
|
||||||
@if($ac->subfleet_id && $ac->subfleet)
|
@if($ac->subfleet_id && $ac->subfleet)
|
||||||
<a href="{!! route('admin.subfleets.edit', [$ac->subfleet_id]) !!}">
|
<a href="{!! route('admin.subfleets.edit', [$ac->subfleet_id]) !!}">
|
||||||
@@ -20,7 +21,6 @@
|
|||||||
-
|
-
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td>
|
|
||||||
<td style="text-align: center;">{!! $ac->icao !!}</td>
|
<td style="text-align: center;">{!! $ac->icao !!}</td>
|
||||||
{{--<td style="text-align: center;">{!! $ac->registration !!}</td>--}}
|
{{--<td style="text-align: center;">{!! $ac->registration !!}</td>--}}
|
||||||
<td style="text-align: center;">
|
<td style="text-align: center;">
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="header">
|
|
||||||
<h3>subfleets</h3>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<div class="header">
|
||||||
|
<h3>subfleets</h3>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@include('admin.ranks.subfleets')
|
@include('admin.ranks.subfleets')
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
{!! Form::label('image_link', 'Image Link:') !!}
|
{!! Form::label('image_link', 'Image Link:') !!}
|
||||||
{!! Form::input('image_link', null, ['class' => 'form-control']) !!}
|
{!! Form::text('image_link', null, ['class' => 'form-control']) !!}
|
||||||
<p class="text-danger">{{ $errors->first('image_link') }}</p>
|
<p class="text-danger">{{ $errors->first('image_link') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($ranks as $rank)
|
@foreach($ranks as $rank)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $rank->name !!}</td>
|
<td><a href="{!! route('admin.ranks.edit', [$rank->id]) !!}">{!! $rank->name !!}</a></td>
|
||||||
<td>{!! $rank->hours !!}</td>
|
<td>{!! $rank->hours !!}</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
@if($rank->auto_approve_acars == 1)
|
@if($rank->auto_approve_acars == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user