PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
faq
@extends('admin.layout.adminMasterLayout') @section('title', 'FAQ List') @section('content') <div class="content-wrapper"> @include('admin.faq.category.list') <div> <a href="{{ route('faq.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New FAQ</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">FAQ List</h3> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Question</th> <th>Answer</th> <th>Category</th> <th>Action</th> </tr> </thead> <tbody> @forelse($faqs as $faq) <tr> <td> {{ $faq->question }} </td> <td> {!! Str::limit($faq->answer, 50) !!} </td> <td> {{ isset($faq->category) ? $faq->category->name : '--' }} </td> <td> <a href="{{ route('faq.edit', $faq) }}" class="btn btn-info btn-sm"> <i class="icon-open"></i> Edit </a> <div class="d-inline-block"> <form action="{{route('faq.destroy', $faq->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="4">No FAQ(s) Listed Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $faqs->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[+]
category
[-] list.blade.php
[edit]