Set flight type in admin

This commit is contained in:
Nabeel Shahzad
2018-01-29 20:51:00 -06:00
parent 906a8ef5fe
commit 351f777488
2 changed files with 22 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers\Admin;
use App\Models\Enums\FlightType;
use App\Models\Flight;
use App\Models\FlightFields;
use App\Http\Requests\CreateFlightRequest;
@@ -88,6 +89,7 @@ class FlightController extends BaseController
'flight' => null,
'airlines' => $this->airlineRepo->selectBoxList(),
'airports' => $this->airportRepo->selectBoxList(true, false),
'flight_types' => FlightType::select(true),
]);
}
@@ -166,6 +168,7 @@ class FlightController extends BaseController
'airports' => $this->airportRepo->selectBoxList(),
'avail_fares' => $this->getAvailFares($flight),
'avail_subfleets' => $avail_subfleets,
'flight_types' => FlightType::select(true),
]);
}