Touren-Detailansicht: einheitliches Karten-Layout, bündige Fakten, mobil optimiert
This commit is contained in:
parent
3ea18501b8
commit
b13b21f30f
6 changed files with 776 additions and 349 deletions
|
|
@ -431,6 +431,7 @@ class TourController
|
|||
|
||||
$tourDays = $tour->durationDays();
|
||||
$tourEnd = $tour->endDate();
|
||||
$tourPeriod = $tour->periodLabel();
|
||||
|
||||
// Vergangene Tour
|
||||
if ($tourEnd !== null && $tourEnd < today()) {
|
||||
|
|
@ -441,12 +442,15 @@ class TourController
|
|||
view('tour.show_old', [
|
||||
'tour' => $tour,
|
||||
'days' => $tourDays,
|
||||
'users' => $users,
|
||||
'guide' => $guide,
|
||||
'tourImages' => $tourImages,
|
||||
'canManage' => $canManage,
|
||||
'canChat' => $canChat,
|
||||
'chatUnread' => $chatUnread,
|
||||
'period' => $tourPeriod,
|
||||
'users' => $users,
|
||||
'current' => $current,
|
||||
'guide' => $guide,
|
||||
'tourImages' => $tourImages,
|
||||
'canManage' => $canManage,
|
||||
'canChat' => $canChat,
|
||||
'chatUnread' => $chatUnread,
|
||||
'roomOptions' => TourRoom::forTour((int) $tour->id),
|
||||
]);
|
||||
|
||||
return;
|
||||
|
|
@ -461,13 +465,16 @@ class TourController
|
|||
view('tour.show', [
|
||||
'tour' => $tour,
|
||||
'days' => $tourDays,
|
||||
'users' => $users,
|
||||
'guide' => $guide,
|
||||
'tourImages' => $tourImages,
|
||||
'rooms' => $rooms,
|
||||
'canManage' => $canManage,
|
||||
'canChat' => $canChat,
|
||||
'chatUnread' => $chatUnread,
|
||||
'period' => $tourPeriod,
|
||||
'users' => $users,
|
||||
'current' => $current,
|
||||
'guide' => $guide,
|
||||
'tourImages' => $tourImages,
|
||||
'rooms' => $rooms,
|
||||
'roomOptions' => TourRoom::forTour((int) $tour->id),
|
||||
'canManage' => $canManage,
|
||||
'canChat' => $canChat,
|
||||
'chatUnread' => $chatUnread,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue