PATH:
home
/
lab2454c
/
tripvare.com
/
resources
/
views
/
admin
/
dashboard
/
manage_gallery
@extends('layouts.admin.dashboard') @section('content') <div class="inner__body__wrapp faq__wrap"> @include('validation.flashmessage') <div class="list__header__wrapp mb-4"> <h2>{{ __('Gallery Image List')}}</h2> <a href="{{ route('admin.gallery.create') }}" class="btn btn-primary"> <i class="fa fa-plus" aria-hidden="true"></i> Add Images </a> </div> <div class="row"> @forelse($images as $image) <div class="col-md-2 my-3"> <div class="card"> <a href="{{ isset($image->image) ? config("app.url").Storage::url($image->image) : '' }}" target="_blank"> <img src="{{ isset($image->image) ? config("app.url").Storage::url($image->image) : asset('img/no-image.png') }}" class="card-img-top" style="height: 115px;object-fit: contain;" /> </a> <div class="card-body"> <form action="{{route('admin.gallery.destroy', $image)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="btn btn-danger btn-sm" style="cursor: pointer;" onclick="return confirm('Are you sure?')" title="Delete Image"> <i class="fa fa-trash"></i> </button> </form> </div> </div> </div> @empty <h4>No Images Found</h4> @endforelse </div> <div class="mt-4"> {!! $images->links('pagination::bootstrap-4') !!} </div> {{-- <div class="table-responsive"> <table class="table table-sm"> <thead> <tr> <th scope="col">{{ __('Image')}}</th> <th scope="col">{{ __('Action')}}</th> </tr> </thead> <tbody> @forelse($images as $image) <tr class="manage__user__data__table"> <td> <a href="{{ isset($image->image) ? config("app.url").Storage::url($image->image) : '' }}" target="_blank"> <img src="{{ isset($image->image) ? config("app.url").Storage::url($image->image) : asset('img/no-image.png') }}" width="150" /> </a> </td> <td> <ul class="list-inline m-0"> <li class="list-inline-item"> <a href='{{ route("admin.gallery.destroy", $image)}}' class="btn btn-danger btn-sm" title="{{ __('Delete')}}" onclick="return confirm('Are you sure?')"> <i class="fa fa-trash"></i></a> </li> </ul> </td> </tr> @empty <td colspan="4">No Images Found</td> @endforelse </tbody> </table> {!! $images->links('pagination::bootstrap-4') !!} </div> --}} </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[+]
..
[-] index.blade.php
[edit]