Fix rank image field
This commit is contained in:
parent
c817d1ae4b
commit
61dc0a046d
@ -52,10 +52,10 @@ class AircraftController extends BaseController
|
||||
public function store(CreateAircraftRequest $request)
|
||||
{
|
||||
$input = $request->all();
|
||||
$this->aircraftRepository->create($input);
|
||||
$aircraft = $this->aircraftRepository->create($input);
|
||||
|
||||
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">
|
||||
<thead>
|
||||
<th>Subfleet</th>
|
||||
<th>Name</th>
|
||||
<th>Subfleet</th>
|
||||
{{--<th style="text-align: center;">ICAO</th>--}}
|
||||
<th style="text-align: center;">Registration</th>
|
||||
<th style="text-align: center;">Hours</th>
|
||||
@ -11,6 +11,7 @@
|
||||
<tbody>
|
||||
@foreach($aircraft as $ac)
|
||||
<tr>
|
||||
<td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td>
|
||||
<td>
|
||||
@if($ac->subfleet_id && $ac->subfleet)
|
||||
<a href="{!! route('admin.subfleets.edit', [$ac->subfleet_id]) !!}">
|
||||
@ -20,7 +21,6 @@
|
||||
-
|
||||
@endif
|
||||
</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->registration !!}</td>--}}
|
||||
<td style="text-align: center;">
|
||||
|
@ -10,10 +10,10 @@
|
||||
</div>
|
||||
|
||||
<div class="card border-blue-bottom">
|
||||
<div class="content">
|
||||
<div class="header">
|
||||
<h3>subfleets</h3>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
@include('admin.ranks.subfleets')
|
||||
</div>
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
{!! 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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<tbody>
|
||||
@foreach($ranks as $rank)
|
||||
<tr>
|
||||
<td>{!! $rank->name !!}</td>
|
||||
<td><a href="{!! route('admin.ranks.edit', [$rank->id]) !!}">{!! $rank->name !!}</a></td>
|
||||
<td>{!! $rank->hours !!}</td>
|
||||
<td class="text-center">
|
||||
@if($rank->auto_approve_acars == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user