@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [], ) ) @php($headingOptions = [ '
| Name | Active | Groups | Created by | Created at | @if($permission['edit'] || $permission['destroy'] )Action | @endif
|---|---|---|---|---|---|
| {{ $val->title ?? '' }} | @php($groupTitles = $val->groups->pluck('title')->toArray()) {{ implode(', ', $groupTitles) ?: 'None' }} | {{ $val->created_by->full_name ?? '--' }} | {!! \App\Helpers\Helper::showdate($val->created_at) !!} | @if($permission['edit'] || $permission['destroy'] )@if(isset($permission['edit']) && $permission['edit']) {!! html()->form('POST', route($routePrefix . '.change-status', $val->id))->attributes([ 'style' => 'display:inline', 'id' => 'change-status-form-' . $val->id, ])->open() !!} {!! html()->hidden('status', $val->status == 1 ? 2 : 1) !!} {!! html()->hidden('id', $val->id) !!} {!! html()->form()->close() !!} @endif @if(isset($permission['destroy']) && $permission['destroy']) {!! html()->form('DELETE', route($routePrefix . '.destroy', $val->id))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $val->id, ])->open() !!} {!! html()->form()->close() !!} @endif | @endif|
| No Data Found | |||||