PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
about
@extends('admin.layout.adminMasterLayout') @section('title', 'About Content') @section('content') <div class="content-wrapper"> @include('admin.about.content1.list') <div> <a href="{{ route('leadership.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New</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">Leadership List</h3> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Image</th> <th>Name</th> <th>Designation</th> <th>Action</th> </tr> </thead> <tbody> @forelse($leaderships as $leadership) <tr> <td class="py-1"> <img src="{{ isset($leadership->image) ? config("app.url").Storage::url($leadership->image) : asset('adminAssets/images/default-page-banner.png') }}" alt="profile_image"/> </td> <td> {{ $leadership->name }} </td> <td> {{ $leadership->designation }} </td> <td> <a href="{{ route('leadership.edit', $leadership) }}" class="btn btn-info btn-sm"> <i class="icon-open"></i> Edit </a> <div class="d-inline-block"> <form action="{{route('leadership.destroy', $leadership->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="btn btn-primary btn-sm" style="cursor: pointer;" onclick="return confirm('Are you sure?')"> Delete </button> </form> </div> </td> </tr> @empty <td colspan="5" class="text-center">No Leadership(s) Listed Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $leaderships->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> @include('admin.about.advisor.list') @include('admin.about.content2.list') </div> @endsection
[+]
content2
[+]
content1
[+]
..
[-] list.blade.php
[edit]
[+]
advisor
[+]
leadership