last changes since 6-2023
This commit is contained in:
parent
561c5875a7
commit
c1c613a4b9
53 changed files with 1351 additions and 93 deletions
|
|
@ -16,10 +16,11 @@ use App\Models\TravelNationality;
|
|||
use App\Models\Sym\TravelCountry as SymTravelCountry;
|
||||
use App\Models\TravelArrivalPoint;
|
||||
use App\Models\TravelGerneralNote;
|
||||
use App\Models\TravelProgram;
|
||||
|
||||
class Model
|
||||
{
|
||||
|
||||
|
||||
public static function getSfGuardUserArray(){
|
||||
return SfGuardUser::where('is_active', 1)->get()->pluck('fullname', 'id');
|
||||
}
|
||||
|
|
@ -34,6 +35,11 @@ class Model
|
|||
return $emtpy ? $TravelCountry->prepend('-', 0) : $TravelCountry;
|
||||
}
|
||||
|
||||
public static function getTravelProgramArray($emtpy = false){
|
||||
$TravelProgram = TravelProgram::where('status', 1)->orderBy('title')->get()->pluck('title', 'id');
|
||||
return $emtpy ? $TravelProgram->prepend('-', 0) : $TravelProgram;
|
||||
}
|
||||
|
||||
public static function getTravelCategoryArray($emtpy = false){
|
||||
$TravelCategory = TravelCategory::where('active', true)->orderBy('name')->get()->pluck('name', 'id');
|
||||
return $emtpy ? $TravelCategory->prepend('-', 0) : $TravelCategory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue