@if ($list_items) @foreach ($list_items as $list_item) @if(in_array($list_item->id, [1, 2, 3])) @else @endif
Role ID:
{{ $list_item->id }}
{{ $list_item->title }}
{{ $list_item->description }}
@if(in_array($list_item->id, [1, 2, 3]))
System Role
@endif @if ($list_item->status) Active @else Inactive @endif {{ $list_item->updated_at->diffForHumans() }} @if(in_array($list_item->id, [1, 2, 3])) {{-- System roles - limited actions --}} @include('admin.crud.action-dropdown', [ 'cloneUrl' => url('admin/roles/'.$list_item->id.'/clone'), 'cloneTitle' => 'Clone Role', 'customActions' => [ [ 'url' => 'javascript:void(0)', 'title' => 'System Role - Cannot Edit/Delete', 'icon' => 'mdi mdi-shield-check', 'class' => 'text-muted disabled' ] ] ]) @else {{-- Regular roles - full actions --}} @include('admin.crud.action-dropdown', [ 'cloneUrl' => url('admin/roles/'.$list_item->id.'/clone'), 'cloneTitle' => 'Clone Role', 'editUrl' => url('admin/roles/'.$list_item->id.'/edit'), 'editTitle' => 'Update Role', 'deleteUrl' => route('admin.roles.destroy', $list_item->id), 'redirectUrl' => route('admin.roles.index') ]) @endif @endforeach @endif