@php $index = 1; @endphp
@include('components.tables._openPhoto',[
'asset' => $user->photo,
'alt' => $user->name,
'title' => $user->name,
'text' => 'Visualizar foto',
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Nome completo do responsável legal",
"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 do responsável legal",
"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" => "Email do responsável legal",
"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._inputType',[
"for" => null,
"label" => "Telefone do responsável legal",
"name" => "phoneNumber",
"id" => null,
"required" => true,
"type" => null,
"old" => old('phoneNumber', $user->phoneNumber),
"oninput" => "javascript:aplicarMascaraTelefone(this)",
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Foto responsável legal",
"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
',
])
@include('components.buttons._backAndSend', [
'textBack' => 'Voltar',
'textSend' => 'Salvar',
'routeBack' => 'admin.empresasDeTurismo.index'
]
)