Mehrere Tickets 49, 50, 51, 52, 53
This commit is contained in:
parent
ae70577289
commit
e3495be8b8
61 changed files with 1904 additions and 344 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Services;
|
|||
use App\Models\Branch;
|
||||
use App\Models\Status;
|
||||
use App\Models\DraftType;
|
||||
use App\Models\CMSContent;
|
||||
use App\Models\Salutation;
|
||||
use App\Models\SfGuardUser;
|
||||
use App\Models\TravelAgenda;
|
||||
|
|
@ -90,9 +91,12 @@ class Model
|
|||
$DraftType = DraftType::where('active', true)->orderByDesc('pos')->get()->pluck('name', 'id');
|
||||
return $emtpy ? $DraftType->prepend('-', 0) : $DraftType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static function getCMSContentGeneralNameById($id = false){
|
||||
if($id > 0){
|
||||
$content = CMSContent::findOrFail($id);
|
||||
return $content->name;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue