travel guide

This commit is contained in:
Kevin Adametz 2019-06-22 10:58:16 +02:00
parent 346a7427a5
commit a1ca534f55
26 changed files with 5788 additions and 3191 deletions

View file

@ -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 = []){