@extends('layouts.app') @section('title', 'Usuarios') @push('styles') @vite(['resources/css/usuarios.css']) @endpush @section('content')

Usuarios

Gestiona cuentas, roles y estado del sistema Tulinda.

{{-- Alertas --}} @if (session('ok'))
{{ session('ok') }}
@endif @if (session('error'))
{{ session('error') }}
@endif {{-- Toolbar --}}
{{ $usuarios->total() ?? count($usuarios) }} registros
{{-- Tabla --}}
@forelse ($usuarios as $u) @php $rol = $u->ROL ?? ''; $estado = $u->ESTADO_USUARIO ?? ''; $rolClass = $rol === 'ADMIN' ? 'role admin' : 'role vendor'; $stClass = $estado === 'ACTIVO' ? 'status on' : 'status off'; @endphp @empty @endforelse
ID USUARIO ID EMPLEADO ROL ESTADO ACCIONES
{{ $u->ID_USUARIO }} {{ $u->ID_EMPLEADO }} {{ $rol }} {{ $estado }} Editar
@csrf @method('DELETE')
No hay usuarios registrados.
{{-- Paginación --}} @if (method_exists($usuarios, 'links'))
{{ $usuarios->links() }}
@endif
@endsection