@include('components.tables._openPhoto', [
'asset' => "pmar/assets/img/icons/usuario.png",
'alt' => "Novo usuário",
'title' => "Novo usuário",
'text' => 'Visualizar foto',
'index' => 1,
'style' => "width: 200px;",
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Foto",
"name" => "photo",
"id" => null,
"required" => false,
"type" => 'file',
"old" => null,
"oninput" => null,
"readonly" => true,
"small" => null,
"accept" => 'image/jpeg,image/jpg,image/png,image/gif',
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Nome completo",
"name" => "fullName",
"id" => null,
"required" => true,
"type" => null,
"old" => old('fullName'),
"oninput" => "javascript:this.value = this.value.toLocaleUpperCase('pt-BR').replace(/[^\p{L}\s]+/gu, '').replace(/\s{2,}/g,' ').trimStart()",
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "CPF",
"name" => "cpf",
"id" => null,
"required" => true,
"type" => null,
"old" => old('cpf', session("cpfTmp") ?? "" ),
"oninput" => "javascript:aplicarMascaraCPF(this)",
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Telefone",
"name" => "phoneNumber",
"id" => null,
"required" => true,
"type" => null,
"old" => old('phoneNumber'),
"oninput" => "javascript:aplicarMascaraTelefone(this)",
"readonly" => false,
"small" => null,
])
@include("components.inputs._checkBoxIsWhatsapp")
@include('components.inputs._inputType',[
"for" => null,
"label" => "Email",
"name" => "email",
"id" => null,
"required" => false,
"type" => 'email',
"old" => old('email'),
"oninput" => "javascript:this.value = this.value.toLowerCase()",
"readonly" => false,
"small" => null,
"placeholder" => "nome@email.com",
])
@include('components.inputs._selectType', [
"for" => "status",
"label" => "Status",
"name" => "status",
"required" => true,
"readonly" => false,
"options" => collect(App\Enums\StatusEnum::cases())
->mapWithKeys(fn($status) => [$status->name => $status->value])
->toArray(),
"selected" => old('status', $user->status ?? ''),
"placeholder" => "Selecione o status...",
"small" => "Informe o status atual do usuário.",
"onchange" => null
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Senha",
"name" => "password",
"id" => null,
"required" => true,
"type" => 'password',
"old" => old('password', 'mudar123'),
"oninput" => null,
"readonly" => true,
"small" => '* A senha padrão é: mudar123
',
"toggleButton" => null,
"inputGroup" => false,
])