PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
admin
/
faq
@extends('admin.layouts.adminMasterLayout') @section('title', 'Faq List') @section('home_management_select','active') @section('content') <div class="container-fluid"> <div class="dashboard__main mb-4"> <h2>Faq List</h2> </div> <div class="card shadow mb-4"> <div class="card-body"> <div class="float-right"> <a href="{{ route('faq.create') }}" class="btn btn-success mb-4">Add New</a> </div> <div class="table-responsive"> <table class="table table-bordered" id="example" width="100%" cellspacing="0"> <thead> <tr> <th>Question</th> <th>Answer</th> <th>Action</th> </tr> </thead> <tbody> @if ($faqs->count() > 0 ) @foreach ($faqs as $faq) <tr> <td> {{ $faq->question }} </td> <td> {{ Str::limit($faq->answer, 70) }} </td> <td> <a href="{{ route('faq.edit',$faq) }}" class="btn btn-primary frm-btn_handler btn__edit">Edit</a> <form action="{{ route('faq.destroy',$faq->id) }}" method="POST"> {{ csrf_field() }} @method('DELETE') <button class="btn btn-danger frm-btn_handler btn__delete" onclick="return confirm('Are you sure?')">Delete </button> </form> </td> </tr> @endforeach @else <td colspan="7">No data Found!!</td> @endif </tbody> </table> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]