@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Responsável Legal da Empresa de Turismo") @section('content') @php $filterParams = \App\Http\Resources\TurisAngra\EmpresasDeTurismo\EmpresaTurismoResource::listFilterParamsFromRequest(request()); @endphp
@php $headLine = " Responsável Legal da Empresa de Turismo"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.empresasDeTurismo.index', 'routeBackParams' => $filterParams, 'nameBack' => __("Voltar"), "permission" => "GERENCIADOR_DE_EMPRESAS_DE_TURISMO", ])
@include('admin.turisAngra.empresasDeTurismo.sections._filterHidden', ['filterParams' => $filterParams]) @include("errors.messageFlash") @csrf @method('post')

{{ $empresa->razaoSocial ?? '-' }}
{{ __("CNPJ: ") . ($empresa->cnpj ?? '-') }}


@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' ] )
@endsection