@extends('admin.layout_admin.main') @section('content')

Quản lý Vai trò (Roles)

@if ($roles->count() > 0)
@foreach ($roles as $key => $role) @endforeach
STT Tên vai trò Quyền Thao tác
{{ $roles->firstItem() + $key }} {{ $role->name }} @if($role->permissions->count()) {{ Str::limit($role->permissions->pluck('name')->join(', '), 30) }} @else Chưa gán @endif
Sửa
@csrf @method('DELETE')
@else @if (request('search'))

Không tìm thấy vai trò nào khớp với từ khóa "{{ request('search') }}".

@else

Chưa có vai trò nào trong hệ thống.

@endif @endif
{{ $roles->links() }}
@endsection @section('js') @endsection