@extends('layouts.app') @section('title', 'User Management') @section('content')
Manage system users and their roles
| Name | Department | Roles | Created | Actions | |
|---|---|---|---|---|---|
|
{{ $user->name }}
|
{{ $user->email }}
|
@if($user->department) {{ $user->department->name }} @else - @endif |
@forelse($user->roles as $role)
{{ $role->name }}
@empty
No roles
@endforelse
|
{{ $user->created_at->format('M d, Y') }} |
@can('edit users')
Edit
@endcan
@can('delete users')
@if($user->id !== auth()->id())
@endif
@endcan
|
| No users found. | |||||