@push('css') {{-- Select2 --}} @endpush
Gerenciamento de Usuários
{{-- Messagens da session --}} @include('partials.session-message') @if ($errors->any() || session('error'))
{{$errors->any() ? $errors->first() : session('error')}}
@endif
@if(isset($user) && isset($bg_status))
#
@endif

Dados do Usuário

{{-- Nome --}}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{-- Email --}}
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
{{-- Username --}}
@if ($errors->has('username')) {{ $errors->first('username') }} @endif
{{-- Tipo --}} {{--
--}} {{-- 1) Checkbox de Administrador --}}
{{-- garante envio de N quando desmarcado --}}
is_admin ?? 'N') === 'S' ? 'checked' : '' }} >
@error('is_admin')
{{ $message }}
@enderror
{{-- 2) Lista de Empresas (checkboxes) que aparece quando showCompanies é true --}} @if (Auth::user()->tenant->is_admin_tenant) {{-- Tipo de Pessoa --}}
@endif

Alterar Senha

{{-- Senha --}}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{{-- Confirmar Senha --}}
@include('partials.status', ['model' => $user ?? null])
@if(isset($user))
@include('partials.upload', ['model' => $user])
@endif
@push('js') @include('partials.upload-js') @endpush {{-- @TODO: criar mascaras --}}