This commit is contained in:
Kevin Adametz 2024-08-05 11:58:09 +02:00
parent c1c613a4b9
commit 881fc84207
384 changed files with 50679 additions and 990 deletions

View file

@ -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');