@extends('layouts.app') @php $isEdit = isset($local); $tipoLabel = $tipo === 'origem' ? 'Origem' : 'Destino'; $isOrigem = $tipo === 'origem'; @endphp @section('title', $isEdit ? "Editar Registro ({$tipoLabel})" : "Novo Registro ({$tipoLabel})") @section('page_title', $isEdit ? "Editar Registro ({$tipoLabel})" : "Novo Registro ({$tipoLabel})") @section('content')
@csrf @if($isEdit) @method('PUT') @endif
{{-- Tipo: selecionável no cadastro, informativo na edição --}}
@if($isEdit)

{{ $tipoLabel }} (não pode ser alterado)

@else @endif

Vincula este local ao idClienteOrigemEndereco / idClienteDestinoEndereco da A52.

@error('id_a52')

{{ $message }}

@enderror

Coordenadas geográficas

Serão usadas para roteirização, conferência GPS e cálculo dos trechos operacionais. Informe latitude e longitude juntas.

is_active ?? true) ? 'checked' : '' }}>
Cancelar
@endsection