@extends('adminlte::page') @section('title', 'Usuários') @section('content_header') @stop @section('content') @php $filtroPapel = $filtros['papel'] ?? ''; $resultadoCount = $usuarios->total(); $papelLabels = [ 'admin' => 'Administrador', 'readonly' => 'Somente leitura', 'pendente' => 'Email pendente', ]; $filtrosModalCount = (int) !empty($filtros['busca']) + (int) (($filtros['ordenacao'] ?? 'created_at') !== 'created_at') + (int) (($filtros['direcao'] ?? 'desc') !== 'desc'); $limparModalUrl = route('usuarios.index', array_filter(['papel' => $filtroPapel ?: null])); @endphp
Sistema
@if($temFiltros ?? false) {{ $resultadoCount }} resultado(s) com filtros · {{ $stats['total'] ?? 0 }} no total @else {{ $stats['total'] ?? 0 }} conta(s) com acesso ao painel central WayGest @endif
{{ $stats['total'] ?? 0 }}
Total
{{ $stats['admin'] ?? 0 }}
Administradores
{{ $stats['readonly'] ?? 0 }}
Somente leitura
{{ $stats['pendente'] ?? 0 }}
Email pendente
| Usuário | Papel | Verificação | Criado em | Ações |
|---|---|---|---|---|
|
|
@if($usuario->isGestaoOpsReadonly()) Somente leitura @else Administrador @endif | @if($usuario->email_verified_at) Verificado @else Pendente @endif | {{ $usuario->created_at->format('d/m/Y') }} {{ $usuario->created_at->format('H:i') }} |
Nenhum usuário encontrado com os filtros aplicados.
Limpar filtros @elseAinda não há usuários registrados.
@can('gestao-write') Criar primeiro usuário @endcan @endif