Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing $subfleet error on bids page #561 #562

Merged
merged 1 commit into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions app/Http/Controllers/Frontend/FlightController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,12 @@ public function bids(Request $request)
$saved_flights = $flights->pluck('id')->toArray();

return view('flights.index', [
'title' => trans_choice('flights.mybid', 2),
'airlines' => $this->airlineRepo->selectBoxList(true),
'airports' => $this->airportRepo->selectBoxList(true),
'flights' => $flights,
'saved' => $saved_flights,
'title' => trans_choice('flights.mybid', 2),
'airlines' => $this->airlineRepo->selectBoxList(true),
'airports' => $this->airportRepo->selectBoxList(true),
'flights' => $flights,
'saved' => $saved_flights,
'subfleets' => $this->subfleetRepo->selectBoxList(true),
]);
}

Expand Down
14 changes: 7 additions & 7 deletions resources/views/layouts/default/flights/search.blade.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<h3 class="description">@lang('flights.search')</h3>
<div class="card pull-right">
<div class="card-block" style="min-height: 0px">
<div class="card border-blue-bottom">
<div class="card-body ml-1 mr-1" style="min-height: 0px; display: flex; justify-content: center; align-items: center;">
<div class="form-group search-form">
{{ Form::open([
'route' => 'frontend.flights.search',
'method' => 'GET',
'class'=>'form-inline'
]) }}
<div style="margin-left: 5px;">
<div>
<p>@lang('flights.flightnumber')</p>
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
</div>

<div style="margin-top: 10px; margin-left: 5px;">
<div class="mt-1">
<p>@lang('airports.departure')</p>
{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control select2']) }}
</div>

<div style="margin-top: 10px; margin-left: 5px;">
<div class="mt-1">
<p>@lang('airports.arrival')</p>
{{ Form::select('arr_icao', $airports, null , ['class' => 'form-control select2']) }}
</div>

<div style="margin-top: 10px; margin-left: 5px;">
<div class="mt-1">
<p>@lang('common.subfleet')</p>
{{ Form::select('subfleet_id', $subfleets, null , ['class' => 'form-control select2']) }}
</div>

<div class="clear" style="margin-top: 10px; margin-left: 5px;">
<div class="clear mt-1" style="margin-top: 10px;">
{{ Form::submit(__('common.find'), ['class' => 'btn btn-primary']) }}&nbsp;
<a href="{{ route('frontend.flights.index') }}">@lang('common.reset')</a>
</div>
Expand Down