PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
about
/
advisor
<div> <a href="{{ route('advisor.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New Advisor</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">Advisor 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($advisors as $advisor) <tr> <td class="py-1"> <img src="{{ isset($advisor->image) ? config("app.url").Storage::url($advisor->image) : asset('adminAssets/images/default-page-banner.png') }}" alt="profile_image"/> </td> <td> {{ $advisor->name }} </td> <td> {{ $advisor->designation }} </td> <td> <a href="{{ route('advisor.edit', $advisor) }}" class="btn btn-info btn-sm"> <i class="icon-open"></i> Edit </a> <div class="d-inline-block"> <form action="{{route('advisor.destroy', $advisor->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 Advisor(s) Listed Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $advisors->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div>
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]