@extends('layouts.admin.app', ['page' => $menuAdmin['settings']['active'] ?? '']) @section('title', __('labels.map_settings')) @section('header_data') @php $page_title = __('labels.map_settings'); $page_pretitle = __('labels.settings'); @endphp @endsection @php $isOsm = ($settings['map_type'] ?? 'google_map') === 'open_street_map'; $needsGoogle = ! $isOsm || ($settings['place_search'] ?? 'google_places') === 'google_places'; $canEdit = auth()->user()->can('updateSetting', [\App\Models\Setting::class, 'map']) && ! ($isDemoUser ?? false); @endphp @section('admin-content') @include('admin.settings.partials._header', [ 'title' => __('labels.map_settings'), 'category' => 'operations', ])
@csrf
{{ __('Unsaved changes. The preview reflects your selections; other pages and apps change only after Save.') }}

{{ __('Map Provider') }}

{{ __('Google services may incur charges.') }} {{ __('Google Maps, Google Places, and Google Directions require billing. Charges depend on usage, the services requested, and applicable free allowances. Searches in this preview also count toward usage.') }} {{ __('View official Google Maps Platform pricing') }}

{{ __('Google Maps is already loaded with a different key. Save and reload to apply the replacement key; this preview uses the loaded key.') }}

{{ __('Website Map Embed (optional)') }}

{{ __('This optional website embed does not control the map picker or tracking screens.') }}

{{ __('Use an HTTP(S) URL containing {z}, {x}, and {y}. A custom provider may require a token in the URL.') }}

{{ __('Standard OSM tiles, Photon, Nominatim, and OSRM do not require API keys.') }}

{{ __('Shared Map Settings') }}

{{ __('Default Location Preview') }}

{{ __('Preview your unsaved map selections. Choose a location on the map to update the coordinates above.') }}

{{ __('Loading map preview…') }}
@if ($canEdit) @endif
@endsection @push('scripts') @include('layouts.partials.map-runtime') @endpush