{{-- Messagens da session --}} @include('partials.session-message')
{{ isset($user) ? $user->name : '-' }}

{{ isset($user) ? $user->username : '-' }}

@if (isset($user)) @endif

Usuário

DADOS CADASTRAIS

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('cellphone')) {{ $errors->first('cellphone') }} @endif

Acesso

@if ($errors->has('username')) {{ $errors->first('username') }} @endif
@if ($errors->has('tipo_permissao')) {{ $errors->first('tipo_permissao') }} @endif Admin e Master veem todos os menus (exceto Clientes só Master). Usuário vê só Chat e Dashboard Chat.
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password2')) {{ $errors->first('password2') }} @endif
@if(isset($user)) @include('partials.upload', ['model' => $user]) @endif

Agentes

Agentes que o usuário pode interagir

Para tipo "Usuário", marque os agentes com os quais esta pessoa poderá conversar. Admin/Master têm acesso a todos.

@if (isset($user) && isset($agentes) && $agentes->isNotEmpty())
|
@endif
@if (isset($user) && isset($agentes)) @foreach($agentes as $agente) @php $resumo = $agente->quem_e ?? $agente->o_que_faz ?? ''; $resumo = \Illuminate\Support\Str::limit(strip_tags($resumo), 55); $fotoUrl = $agente->foto ? \Illuminate\Support\Facades\Storage::url($agente->foto) : null; $liberado = isset($user) && $user->id && $user->agentes->contains('idagente', $agente->idagente); @endphp @endforeach @if($agentes->isEmpty())

Nenhum agente cadastrado.

@endif @endif
@include('partials.upload-js') @include('layouts.footers.auth.footer')