diff --git a/motorradig/app/Http/Controllers/TourController.php b/motorradig/app/Http/Controllers/TourController.php index 3fc65ff..e011053 100644 --- a/motorradig/app/Http/Controllers/TourController.php +++ b/motorradig/app/Http/Controllers/TourController.php @@ -120,7 +120,7 @@ class TourController extends Controller array_push($users, $user); } - // Alte Tour anzeigen + // Vergangene Tour anzeigen if($tour->start < Carbon::now()) { $tour->start = Tour::toGermanDate($tour->start); $tour->deadline = Tour::toGermanDate($tour->deadline); @@ -130,6 +130,7 @@ class TourController extends Controller ->with('creator', $creator); } + // Zukünftige Tour anzeigen $rooms=$this->fetch_rooms($tour->id); $tour->start = Tour::toGermanDate($tour->start); diff --git a/motorradig/resources/views/tour/show.blade.php b/motorradig/resources/views/tour/show.blade.php index e4b4d70..8d29d38 100644 --- a/motorradig/resources/views/tour/show.blade.php +++ b/motorradig/resources/views/tour/show.blade.php @@ -91,19 +91,26 @@