travel guide
This commit is contained in:
parent
346a7427a5
commit
a1ca534f55
26 changed files with 5788 additions and 3191 deletions
|
|
@ -10,6 +10,7 @@ use App\Models\Interest;
|
|||
use App\Models\TravelBookingFewoChannel;
|
||||
use App\Models\TravelClass;
|
||||
use App\Models\TravelCountry;
|
||||
use App\Models\TravelGuide;
|
||||
use App\Models\TravelNationality;
|
||||
use App\Models\TravelProgram;
|
||||
use App\Models\TravelUser;
|
||||
|
|
@ -212,6 +213,16 @@ class HTMLHelper
|
|||
return $ret;
|
||||
}
|
||||
|
||||
public static function getTravelGuideOptions($id = false){
|
||||
$options = TravelGuide::where('active',1)->get();
|
||||
$ret = '<option value="">keinen Inhalt</option>\n';
|
||||
foreach ($options as $option){
|
||||
$attr = ($option->id === $id) ? 'selected="selected"' : '';
|
||||
$ret .= '<option value="'.$option->id.'" '.$attr.'>'.$option->name.'</option>\n';
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static function getWeekdaysOptions($programId = false, $weekdays = []){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue