| ลำดับ | ชื่อ | ชื่อผู้ใช้ | อีเมล | บทบาท | สถานะ | @if ($canEdit || $canDelete)จัดการ | @endif
|---|---|---|---|---|---|---|
| {{ $user->id }} | {{ $user->name }} | {{ $user->username }} | {{ $user->email }} | {{ $user->role?->role_name }} | @if ($canEdit && ! $user->is(auth()->user())) @else {{ $user->status ? 'เปิดใช้งาน' : 'ปิดใช้งาน' }} @endif | @if ($canEdit || $canDelete)
@if ($canEdit)
@include('shell.icons.pencil')
@endif
@if ($canDelete && ! $user->is(auth()->user()))
@endif
|
@endif
{{ $search !== '' ? 'ไม่พบรายการที่ค้นหา' : 'ยังไม่มีข้อมูล' }}
@endif @include('shell.partials.pagination', ['paginator' => $users])