Working on Gallery
This commit is contained in:
parent
036fdc4d61
commit
6d67a5876b
2 changed files with 10 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -2,10 +2,8 @@
|
|||
|
||||
@section('content')
|
||||
<div class="container text-center text-light mt-5">
|
||||
<h1 class="text-center">Galerie</h1>
|
||||
|
||||
|
||||
<h1>(Galerie Elemente)</h1>
|
||||
|
||||
<h1>{{$tour_name}}</h1>
|
||||
|
||||
<div class="container text-primary" style="display:flex">
|
||||
<ul class="list-group offset-2 col-8" style="display:inline">
|
||||
|
|
@ -13,9 +11,6 @@
|
|||
<a style="display: inline;" href="/img_storage/tour-{{$tour_id}}/{{$image}}_gross.jpg" data-lightbox="/img_storage/tour-{{$tour_id}}/{{$image}}_gross.jpg" data-title="{{$image}}">
|
||||
<img class="mt-3 ml-3" src="/img_storage/tour-{{$tour_id}}/{{$image}}.jpg">
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
@endforeach
|
||||
</ul>
|
||||
|
|
@ -23,9 +18,9 @@
|
|||
|
||||
<h1 style="color:white;">Hochladen</h1>
|
||||
<form style="background-color: #fff;" class="text-dark" method="post" action="/tour/gallery/{{$tour_id}}" enctype="multipart/form-data">
|
||||
@csrf
|
||||
@csrf
|
||||
<input type="file" id="myFile" name="files[]" multiple>
|
||||
<input type="submit">
|
||||
<input type="submit" value="Hochladen">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue