PATH:
home
/
lab2454c
/
aficb.com
/
resources
/
views
/
admin
/
homepageManager
/
explore
@extends('admin.layout.adminMasterLayout') @section('title', 'Explore Option') @section('content') <div class="content-wrapper"> <div> <a href="{{ route('explore.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add Explore Option</a> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">Product List</h4> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Image</th> <th>Name</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> @forelse($explores as $explore) <tr> <td class="py-1"> <img src="{{ isset($explore->image) ? config("app.url").Storage::url($explore->image) : asset('adminAssets/images/default-page-banner.png') }}" alt="banner_image"/> </td> <td> {{ $explore->name }} </td> <td> <div class="dropdown action-label"> <a class="btn btn-info dropdown-toggle btn-sm" data-toggle="dropdown" aria-expanded="false"> <?=(isset($explore->status) && $explore->status=='active')?'<i class="fa fa-dot-circle-o text-success"></i> Active':'<i class="fa fa-dot-circle-o text-danger"></i> Inactive';?> <span class="caret"></span> </a> <div class="dropdown-menu"> <form action="{{route('explore.destroy', $explore->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="dropdown-item status-btn btn-sm" style="cursor: pointer;"> {!! ($explore->status=='active')? "<i class='fa fa-dot-circle-o text-danger'></i> Inactive":"<i class='fa fa-dot-circle-o text-success'></i> Active" !!} </button> </form> </div> </div> </td> <td> <a href="{{ route('explore.edit', $explore) }}" class="btn btn-primary btn-sm ml-3"> <i class="icon-open"></i> Edit </a> </td> </tr> @empty <td colspan="5">No Explore Options Listed Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $explores->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]