{{-- Вьюха: Список пользователей и их ролей --}} @extends('admin.layout') @section('title', 'Пользователи') @section('content_header')
| # | Имя | Роль | Инд. права | Действия | |
|---|---|---|---|---|---|
| {{ $user->id }} | {{ $user->name }} @if($user->id === auth()->id()) вы @endif | {{ $user->email }} | @if($user->role) {{ $badge['label'] }} @else — @endif | @if($user->userPermissions->count()) {{ $user->userPermissions->count() }} overrides @else нет @endif | @can('users.manage') @if(auth()->user()->canManage($user)) Права @if($user->id !== auth()->id()) @endif @endif @endcan |