08 2024
This commit is contained in:
parent
c1c613a4b9
commit
881fc84207
384 changed files with 50679 additions and 990 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
namespace App\Services;
|
||||
|
||||
use App\Models\Airport;
|
||||
use App\Models\Branch;
|
||||
use App\Models\Status;
|
||||
use App\Models\DraftType;
|
||||
|
|
@ -68,6 +69,12 @@ class Model
|
|||
$TravelCompany = TravelCompany::where('active', true)->orderBy('name')->get()->pluck('name', 'id');
|
||||
return $emtpy ? $TravelCompany->prepend('-', 0) : $TravelCompany;
|
||||
}
|
||||
|
||||
|
||||
public static function getAirportArray($emtpy = false){
|
||||
$Airports = Airport::where('active', true)->orderBy('name')->get()->pluck('name', 'id');
|
||||
return $emtpy ? $Airports->prepend('-', 0) : $Airports;
|
||||
}
|
||||
|
||||
public static function getTravelArrivalPointArray($emtpy = false){
|
||||
$TravelArrivalPoint = TravelArrivalPoint::where('active', true)->orderBy('name')->get()->pluck('name', 'id');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue