@extends('layouts.admin') @section('title', 'System Users') @section('page-title', 'System Users (RBAC)') @section('page-subtitle', 'Manage staff accounts and role-based access') @section('content')
Total: {{ $users->total() }} system users
Add User
@forelse($users as $user) @empty @endforelse
Name Email Phone Role Branch Status Actions
{{ $user->name }} {{ $user->email }} {{ $user->phone }} @php $roleColors = ['admin'=>'bg-red-100 text-red-800','manager'=>'bg-purple-100 text-purple-800','cashier'=>'bg-blue-100 text-blue-800','agent'=>'bg-green-100 text-green-800','loan_officer'=>'bg-yellow-100 text-yellow-800','pos'=>'bg-indigo-100 text-indigo-800','auditor'=>'bg-pink-100 text-pink-800']; @endphp {{ $user->role_label }} {{ $user->branch ?? '-' }} {{ $user->is_active ? 'Active' : 'Inactive' }} @if($user->id !== session('admin_user_id'))
@csrf @method('DELETE')
@endif
No users found.
{{ $users->links() }}
@endsection