@php $prepostoChecked = old('checkPrepostoEmpresa', isset($preposto)) ? true : false; @endphp
@include('components.inputs._inputType',[ 'for' => null, 'label' => __('Nome completo do preposto'), 'name' => 'fullNamePrepostoEmpresa', 'id' => 'fullNamePrepostoEmpresa', 'required' => false, 'type' => null, 'old' => old('fullNamePrepostoEmpresa', $preposto->name ?? null), '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 preposto'), 'name' => 'cpfPrepostoEmpresa', 'id' => 'cpfPrepostoEmpresa', 'required' => false, 'type' => null, 'old' => old('cpfPrepostoEmpresa', $preposto->cpf ?? null), 'oninput' => "javascript:aplicarMascaraCPF(this)", 'readonly' => false, 'small' => null, ]) *
@include('components.inputs._inputType',[ 'for' => null, 'label' => __('Email do preposto'), 'name' => 'emailPrepostoEmpresa', 'id' => 'emailPrepostoEmpresa', 'required' => false, 'type' => 'email', 'old' => old('emailPrepostoEmpresa', $preposto->email ?? null), 'oninput' => "javascript:this.value = this.value.toLowerCase()", 'readonly' => false, 'small' => null, 'placeholder' => 'nome@email.com', ]) *
@include('components.inputs._inputType',[ 'for' => null, 'label' => __('Telefone do preposto'), 'name' => 'phoneNumberPrepostoEmpresa', 'id' => 'phoneNumberPrepostoEmpresa', 'required' => false, 'type' => null, 'old' => old('phoneNumberPrepostoEmpresa', $preposto->phoneNumber ?? null), 'oninput' => "javascript:aplicarMascaraTelefone(this)", 'readonly' => false, 'small' => null, ]) *
@include('components.inputs._inputType',[ 'for' => null, 'label' => __('Foto do preposto'), 'name' => 'photoPrepostoEmpresa', 'id' => 'photoPrepostoEmpresa', 'required' => false, 'type' => 'file', 'old' => null, 'oninput' => null, 'readonly' => true, 'small' => null, 'accept' => 'image/jpeg,image/jpg,image/png,image/gif', ])