@extends('layouts.app') @section('title', 'User Accounts') @section('subtitle', 'Access control and system roles') @section('content') New account
@forelse ($users as $account) @empty @endforelse
User Role Phone Last login Status Actions
{{ $account->initials() }}
{{ $account->name }} @if ($account->id === auth()->id()) You @endif
{{ $account->email }}
{{ $roles[$account->role] ?? ucfirst($account->role) }} {{ $account->phone ?? '—' }} {{ $account->last_login_at?->diffForHumans() ?? 'Never' }} {{ $account->is_active ? 'Active' : 'Deactivated' }}
@if ($account->id !== auth()->id() && $account->is_active)
@csrf @method('DELETE')
@endif
@if ($users->hasPages())
{{ $users->links() }}
@endif
@endsection