PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
faq
/
category
{{-- @extends('admin.layout.adminMasterLayout') @section('title', 'FAQ Category List') @section('content') <div class="content-wrapper"> --}} <div> <a href="{{ route('faqCategory.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New FAQ Category</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 Category List</h3> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Name</th> <th>Short Desc</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> @forelse($faqCategories as $faqCategory) <tr> <td> {{ $faqCategory->name }} </td> <td> {{ isset($faqCategory->short_description) ? Str::limit($faqCategory->short_description, 50) : '--'}} </td> <td> <div class="dropdown action-label"> <a class="btn btn-info dropdown-toggle btn-sm" data-toggle="dropdown" aria-expanded="false"> <?=(isset($faqCategory->status) && $faqCategory->status=='active')?'<i class="fa fa-dot-circle-o text-success"></i> Active':'<i class="fa fa-dot-circle-o text-danger"></i> Inactive';?> <span class="caret"></span> </a> <div class="dropdown-menu"> <form action="{{route('faqCategory.destroy', $faqCategory->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="dropdown-item status-btn btn-sm" style="cursor: pointer;"> {!! ($faqCategory->status=='active')? "<i class='fa fa-dot-circle-o text-danger'></i> Inactive":"<i class='fa fa-dot-circle-o text-success'></i> Active" !!} </button> </form> </div> </div> </td> <td> <a href="{{ route('faqCategory.edit', $faqCategory) }}" class="btn btn-primary btn-sm"> <i class="icon-open"></i> Edit </a> </td> </tr> @empty <td colspan="4">No Category Listed Yet</td> @endforelse </tbody> </table> </div> </div> </div> </div> </div> {{-- </div> @endsection --}}
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]