@extends('admin.layout') @section('title', 'Usuarios - Admin IMOZA') @section('header', 'Usuarios') @section('content')

{{ $users->total() }} usuarios

@forelse($users as $user) @empty @endforelse
Nombre Usuario Email Rol Acciones
{{ $user->name }} {{ $user->username }} {{ $user->email }} @php $roleColors = ['admin' => 'bg-purple-100 text-purple-600', 'manager' => 'bg-blue-100 text-blue-600', 'sales' => 'bg-green-100 text-green-600']; @endphp {{ ucfirst($user->role) }}
@if($user->id !== auth()->id())
@csrf @method('DELETE')
@endif
No hay usuarios.
{{ $users->links() }}
@endsection