@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [], ) ) @php($headingOptions = [ '
'. (request()->has('search_text') && request()->input('search_text') ? '' : '') .'
', $permission['create'] ? ' Add group' : '' ]) @extends('admin.layouts.layout', $headerOption) @section('content')
@if($permission['edit'] || $permission['destroy'] ) @endif @if(isset($data) && count($data) > 0) @foreach($data as $val) @if($permission['edit'] || $permission['destroy'] ) @endif @endforeach @else @endif
Name Active Created by Created at Updated by Updated atAction
{{ $val->title ?? '' }} {{ $val->created_by->full_name ?? '--' }} {!! \App\Helpers\Helper::showdate($val->created_at) !!} {{ $val->updated_by->full_name ?? '--' }} {!! isset($val->updated_by->full_name) ? \App\Helpers\Helper::showdate($val->updated_at) : '--' !!} @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
No Data Found
@include('admin.components.pagination')
@endsection @push('page_script') @endpush