@extends('layouts.app') @section('title', 'User Management') @section('content')
Manage system users, roles, and access
| # | Name | Role | Status | Last Login | Actions | |
|---|---|---|---|---|---|---|
| {{ $u->id }} |
{{ $u->name }}
@if ($u->phone)
{{ $u->phone }}
@endif
|
{{ $u->email }} | @php $roleBadge = match (strtolower($u->role?->name ?? '')) { 'admin' => 'bg-danger', 'manager' => 'bg-primary', 'accountant' => 'bg-info', 'sales' => 'bg-success', 'store' => 'bg-warning text-dark', default => 'bg-secondary', }; @endphp {{ ucfirst($u->role?->name ?? 'none') }} | @if ($u->is_active) Active @else Inactive @endif | {{ $u->last_login_at ?? '—' }} | |
| No users found. | ||||||