@include('components.inputs._inputType',[
"for" => null,
"label" => "Nome completo",
"name" => "fullName",
"id" => null,
"required" => true,
"type" => null,
"old" => old('fullName', $user->name),
"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', $user->cpf ),
"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', $user->phoneNumber),
"oninput" => "javascript:aplicarMascaraTelefone(this)",
"readonly" => false,
"small" => null,
])
@include("components.inputs._checkBoxIsWhatsapp", ["isWhatsapp" => $user->isWhatsapp])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Email",
"name" => "email",
"id" => null,
"required" => false,
"type" => 'email',
"old" => old('email', $user->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" => "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" => "Senha",
"name" => "password",
"id" => null,
"required" => true,
"type" => 'password',
"old" => old('password', 'mudar123'),
"oninput" => null,
"readonly" => true,
"small" => '* A senha padrão é: mudar123
',
"inputGroup" => false,
])