diff --git a/motorradig/app/Http/Controllers/GalleryController.php b/motorradig/app/Http/Controllers/GalleryController.php index 79525dd..634f4eb 100644 --- a/motorradig/app/Http/Controllers/GalleryController.php +++ b/motorradig/app/Http/Controllers/GalleryController.php @@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; use Intervention\Image\Facades\Image; use Illuminate\Support\Facades\Storage; +use Illuminate\Support\Facades\DB; class GalleryController extends Controller { @@ -55,8 +56,11 @@ class GalleryController extends Controller } } - //dd($imagelist); - return view('tour/gallery/show')->with("tour_id",$tour_id)->with("imagelist",$imagelist); + //dd($imagelist); + $tour_name = DB::select("select name from tours where id=".$tour_id)[0]->name; + return view('tour/gallery/show')->with("tour_id",$tour_id) + ->with("imagelist",$imagelist) + ->with("tour_name",$tour_name); } /* diff --git a/motorradig/resources/views/tour/gallery/show.blade.php b/motorradig/resources/views/tour/gallery/show.blade.php index d9e8bd1..f630b6d 100644 --- a/motorradig/resources/views/tour/gallery/show.blade.php +++ b/motorradig/resources/views/tour/gallery/show.blade.php @@ -2,10 +2,8 @@ @section('content')
-

Galerie

- - -

(Galerie Elemente)

+ +

{{$tour_name}}

@@ -23,9 +18,9 @@

Hochladen

- @csrf + @csrf - +