@extends('layouts.app') @section('title', 'Usuarios - ERP-PLUS') @section('page_title', 'Usuarios') @section('page_subtitle', 'Gerencie acessos, papeis e empresas vinculadas.') @section('page_actions') Novo usuario @endsection @push('styles') @endpush @section('content')
| Usuario | Papel | Empresas com acesso | Cadastro | Acoes |
|---|---|---|---|---|
|
{{ $user->name }}
{{ $user->email }}
@if ($user->id === auth()->id())
Voce
@endif
|
@php $roleStyle = match($user->role) { 'admin' => 'background:#dbeafe;color:#1d4ed8', 'operator' => 'background:#dcfce7;color:#15803d', default => 'background:#e5edf2;color:#475569', }; @endphp {{ $user->roleName() }} | @if ($user->isAdmin()) Todas as empresas @elseif ($user->companies->isEmpty()) Nenhuma empresa @else @endif | {{ $user->created_at->format('d/m/Y') }} |
Editar
@if ($user->id !== auth()->id())
@endif
|
Nenhum usuario cadastrado. | ||||