PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
forms
/
category
<div> <a href="{{ route('formCategory.create') }}" class="btn btn-info font-weight-bold mb-3"> + Add New Form 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">Form 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($formCategories as $formCategory) <tr> <td> {{ $formCategory->name }} </td> <td> {{ isset($formCategory->short_description) ? Str::limit($formCategory->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($formCategory->status) && $formCategory->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('formCategory.destroy', $formCategory->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="dropdown-item status-btn btn-sm" style="cursor: pointer;"> {!! ($formCategory->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('formCategory.edit', $formCategory) }}" class="btn btn-primary btn-sm"> <i class="icon-open"></i> Edit </a> </td> </tr> @empty <td colspan="4" class="text-center">No Category Listed Yet</td> @endforelse </tbody> </table> </div> </div> </div> </div> </div>
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]