{{-- Shared Google Places Autocomplete wiring for the public site's City / Locality search — the homepage field and the results page's "Change Location" modal both @include this (via _location-autocomplete-field.blade.php) so the address_components -> {city, locality, state, country} mapping and the Maps script tag itself only ever load/exist once per page, however many autocomplete fields end up on it. Reuses the same legacy google.maps.places.Autocomplete widget already live elsewhere in this app (staff property forms' map widget, the internal staff listing page's radius search) — its dropdown (.pac-container, appended to
) is plain DOM that plain CSS can restyle (see resources/css/site.css), unlike Google's newer PlaceAutocompleteElement, which renders inside a closed shadow DOM. --}} @once @php $mapsKey = config('services.google.maps_key'); @endphp @if ($mapsKey) @push('scripts') @endpush @endif @endonce