From c0fbc7d491676928c181d58c3aad94c16485a0e6 Mon Sep 17 00:00:00 2001 From: Nabeel S Date: Thu, 20 Feb 2020 10:49:15 -0500 Subject: [PATCH] Missing on bids page #561 (#562) --- app/Http/Controllers/Frontend/FlightController.php | 11 ++++++----- .../views/layouts/default/flights/search.blade.php | 14 +++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/Frontend/FlightController.php b/app/Http/Controllers/Frontend/FlightController.php index 4fe34a4c..944b3860 100644 --- a/app/Http/Controllers/Frontend/FlightController.php +++ b/app/Http/Controllers/Frontend/FlightController.php @@ -132,11 +132,12 @@ class FlightController extends Controller $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), ]); } diff --git a/resources/views/layouts/default/flights/search.blade.php b/resources/views/layouts/default/flights/search.blade.php index d69c43ca..501403da 100644 --- a/resources/views/layouts/default/flights/search.blade.php +++ b/resources/views/layouts/default/flights/search.blade.php @@ -1,33 +1,33 @@

@lang('flights.search')

-
-
+
+
{{ Form::open([ 'route' => 'frontend.flights.search', 'method' => 'GET', 'class'=>'form-inline' ]) }} -
+

@lang('flights.flightnumber')

{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
-
+

@lang('airports.departure')

{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control select2']) }}
-
+

@lang('airports.arrival')

{{ Form::select('arr_icao', $airports, null , ['class' => 'form-control select2']) }}
-
+

@lang('common.subfleet')

{{ Form::select('subfleet_id', $subfleets, null , ['class' => 'form-control select2']) }}
-
+
{{ Form::submit(__('common.find'), ['class' => 'btn btn-primary']) }}  @lang('common.reset')