@extends('admin.layouts.dashboard') @section('title', 'System Users') @section('content') @can(\App\Support\Permissions::USERS_MANAGE) Add user @endcan
@foreach ($users as $user) @endforeach
# Name Email Role Status Last sign-in Actions
{{ $loop->iteration }} {{ $user->name }} @if ($user->id === auth()->id()) You @endif {{ $user->email }} @if ($user->role) {{ $user->role->name }} @else No role @endif {{ $user->is_active ? 'Active' : 'Disabled' }} {{ $user->last_login_at ? $user->last_login_at->format('d M Y H:i') : 'Never' }}
@can(\App\Support\Permissions::USERS_MANAGE) Edit {{ $user->name }} @if ($user->id !== auth()->id())
@csrf
@endif @endcan
@endsection