@extends('layouts.app') @section('title', 'Utilizadores') @section('content')
@forelse ($users as $u) @empty @endforelse
NomeEmailPapelCargoHotéisEstado2FAÚltimo loginAções
{{ $u->name }} {{ $u->email }} {{ $u->role }} {{ $u->cargo ?: '—' }} {{ $u->isAdmin() || $u->all_hotels ? 'Todos' : ($u->hotels->count() ?: '—') }} {{ ($u->status ?? 'Active') === 'Active' ? 'Ativo' : 'Inativo' }} @if ($u->hasTwoFactorEnabled()) Ativo @else @endif {{ optional($u->last_login_at)->format('d/m/Y H:i') ?? '—' }}
@if ($u->hasTwoFactorEnabled())
@csrf
@endif
@csrf @method('DELETE')
Sem utilizadores.
@endsection