@extends('layouts.admin.theme') @section('title', env('APP_NAME').' :: '.__('Fluxo de Ônibus - Editar Agendamento')) @section('content')
@php $headLine = " " . __('Fluxo de Ônibus - Editar Agendamento'); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.turisAngra.fluxoDeOnibus.onibusTurismo.index', 'nameBack' => __('Lista de agendamentos'), 'fontawesomeBack' => '', 'permission' => 'GERENCIADOR_DE_FLUXO_DE_ONIBUS'])
@include('errors.messageFlash')
ATENÇÃO : Caso sua empresa já esteja cadastrada na base de dados da Prefeitura de Angra dos Reis, não será possível realizar alterações diretamente por este sistema. Para atualização cadastral, é necessário abrir um chamado junto à Prefeitura.
@csrf @method("POST")
@include('components.inputs._inputType',[ "for" => null, "label" => "CEP", "name" => "cep", "id" => "zipCode", "required" => true, "type" => null, "old" => old('cep', $empresa?->endereco?->cep), "oninput" => "javascript:aplicarMascaraCEP(this)", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Logradouro", "name" => "logradouro", "id" => "street", "required" => true, "type" => null, "old" => old('logradouro', $empresa?->endereco?->logradouro), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Número", "name" => "numero", "id" => "numero", "required" => false, "type" => null, "old" => old('numero', $empresa?->endereco?->numero), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Complemento", "name" => "complemento", "id" => "complemento", "required" => false, "type" => null, "old" => old('complemento', $empresa?->endereco?->complemento), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Cidade", "name" => "cidade", "id" => "city", "required" => true, "type" => null, "old" => old('cidade', $empresa?->endereco?->cidade), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Bairro", "name" => "bairro", "id" => "neighborhood", "required" => true, "type" => null, "old" => old('bairro', $empresa?->endereco?->bairro), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "UF", "name" => "uf", "id" => "state", "required" => true, "type" => null, "old" => old('uf', $empresa?->endereco?->uf), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, "listName" => "estadosBrasileiros", "arrayList" => [ 'AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO', 'RR', 'RS', 'SC', 'SE', 'SP', 'TO' ], ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Comprovante", "name" => "comprovante", "id" => null, "required" => false, "type" => 'file', "old" => null, "oninput" => null, "readonly" => true, "small" => null, "accept" => 'image/jpeg,image/jpg,image/png,image/gif,.pdf', ])
@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', $empresa?->endereco?->status ?? ''), "placeholder" => "Selecione o status...", "small" => "Informe o status atual do usuário.", "onchange" => null ])

@include('components.modal._mapModal',[ "label" => "Clique no mapa e escolha um determinado ponto", ])

@include('components.inputs._inputType',[ "for" => null, "label" => "Latitude", "name" => "latitude", "id" => null, "required" => false, "type" => null, "old" => old('latitude', $empresa?->endereco?->latitude), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])
@include('components.inputs._inputType',[ "for" => null, "label" => "Longitude", "name" => "longitude", "id" => null, "required" => false, "type" => null, "old" => old('longitude', $empresa?->endereco?->latitude), "oninput" => "javascript:this.value = this.value.toUpperCase()", "readonly" => false, "small" => null, ])

id, $onibusTurismo->id]) }}"> {{ __("voltar") }}
@endsection