@php $address = $address ?? null; $variant = $variant ?? 'mobile'; $mapId = $mapId ?? ('address-map-' . ($address->id ?? 'new')); $mapScope = $mapScope ?? null; $inputClass = $variant === 'desktop' ? 'gletra-modal-input' : 'form-control rounded-3 bg-light border-0'; $textareaClass = $variant === 'desktop' ? 'gletra-modal-textarea' : 'form-control rounded-3 bg-light border-0'; $labelClass = $variant === 'desktop' ? 'gletra-modal-label' : 'form-label small fw-bold text-muted text-uppercase'; $colClass = $variant === 'desktop' ? 'col-md-6' : 'col-6'; @endphp @if($mapScope)
@include('partials.google-map-picker', [ 'id' => $mapId, 'addressInput' => $mapScope . ' [name="full_address"]', 'latInput' => $mapScope . ' [name="lat"]', 'lngInput' => $mapScope . ' [name="lng"]', 'cityInput' => $mapScope . ' [name="city"]', 'stateInput' => $mapScope . ' [name="state"]', 'zipInput' => $mapScope . ' [name="zip_code"]', 'lat' => $address->lat ?? null, 'lng' => $address->lng ?? null, ])
@endif