@csrf @if ($edit) @endif

Usuário

Controle de usuários do sistema

@php($papeisError = ($errors->has('tipo_cadastro')))
@php($count = 0) @foreach($papeis as $papel) @if(!$authUser->isSuperAdmin() && $papel->slug === 'super-admin') @continue @endif papel)) @if ($papel->id === $model->papel->id) checked @endif @elseif ($count === 0) {{--checked--}} @endif > @php($count++) @endforeach @if ($papeisError) @endif
@php($nameError = ($errors->has('name')))
@if ($nameError) @endif
@php($emailError = ($errors->has('email')))
@if ($emailError) @endif
@if ($edit)
@endif
@if (!$edit)
@php($passwordError = ($errors->has('password')))
@if ($passwordError) @endif
@php($passwordConfirmationError = ($errors->has('password_confirmation')))
@if ($passwordConfirmationError) @endif
@endif @include('components.submit-button', ['route' => route('admin.usuarios.index')])