PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
insights
@extends('admin.layout.adminMasterLayout') @section('title', 'Insight List') @section('content') <div class="content-wrapper"> @include('admin.insights.text.list') <div> <a href="{{ route('insight.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New Insight</a> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h3 class="card-title">Insight List</h3> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Image</th> <th>Content</th> <th>Action</th> </tr> </thead> <tbody> @forelse($insights as $insight) <tr> <td> <img src="{{ isset($insight->image) ? config("app.url").Storage::url($insight->image) : asset('adminAssets/images/default-page-banner.png') }}" alt="insight_image"/> </td> <td> {!! Str::limit($insight->content, 500) !!} </td> <td> <a href="{{ route('insight.edit', $insight) }}" class="btn btn-info btn-sm"> <i class="icon-open"></i> Edit </a> <div class="d-inline-block"> <form action="{{route('insight.destroy', $insight)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="btn btn-primary btn-sm" style="cursor: pointer;" onclick="return confirm('Are you sure?')"> <i class="fa fa-trash" aria-hidden="true"></i> Delete </button> </form> </div> </td> </tr> @empty <td colspan="5" class="text-center">No Insight(s) Added Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $insights->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[+]
text
[-] list.blade.php
[edit]