diff options
author | Mateja <mail@matejamaric.com> | 2020-11-07 01:02:57 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-07 01:02:57 +0100 |
commit | d64ceaaa73f9053a4787853a7c06758f6af53d65 (patch) | |
tree | e44a6390748410c00b3cb18502780e5ad178af15 /resources | |
parent | 76cbb07c91ec5a868956c116d4fccc6e3cf8d487 (diff) | |
download | yota-laravel-d64ceaaa73f9053a4787853a7c06758f6af53d65.tar.gz yota-laravel-d64ceaaa73f9053a4787853a7c06758f6af53d65.zip |
Gallery finished...
Diffstat (limited to 'resources')
-rw-r--r-- | resources/views/pages/gallery.blade.php | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/resources/views/pages/gallery.blade.php b/resources/views/pages/gallery.blade.php index 84b8daf..f4462fe 100644 --- a/resources/views/pages/gallery.blade.php +++ b/resources/views/pages/gallery.blade.php @@ -4,7 +4,26 @@ @section('content') <div class="row"> - <img class="col-lg-6 mb-3 mb-lg-0" src="/imgs/camp.png" alt="YOTA camp"/> - <img class="col-lg-6 mb-3 mb-lg-0" src="/imgs/yota.jpg" alt="YOTA"/> + {{--<img class="col-lg-6 mb-3 mb-lg-0" src="/imgs/camp.png" alt="YOTA camp"/>--}} + {{--<img class="col-lg-6 mb-3 mb-lg-0" src="/imgs/yota.jpg" alt="YOTA"/>--}} + @if (count($images) > 0) + @foreach ($images as $image) + <div class="col-lg-6"> + <div class="card mb-3"> + <div class="card-img-top"> + <img class="img-fluid" src="{{ asset($image->path . $image->name) }}" alt="{{ $image->name }}" loading="lazy"> + </div> + @auth + <div class="card-body"> + <a class="btn btn-danger" href="{{ route('galleryDelete', $image->id) }}">Delete</a> + </div> + @endauth + </div> + </div> + @endforeach + {{ $images->links() }} + @else + <strong class="text-center">There are currently no images in gallery.</strong> + @endif </div> @endsection() |