|
|
@ -24,14 +24,14 @@ |
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="latitude" class="control-label">{{ __('outlet.latitude') }}</label> |
|
|
<label for="latitude" class="control-label">{{ __('outlet.latitude') }}</label> |
|
|
<input id="latitude" type="text" class="form-control{{ $errors->has('latitude') ? ' is-invalid' : '' }}" name="latitude" value="{{ old('latitude') }}" required> |
|
|
|
|
|
|
|
|
<input id="latitude" type="text" class="form-control{{ $errors->has('latitude') ? ' is-invalid' : '' }}" name="latitude" value="{{ old('latitude', request('latitude')) }}" required> |
|
|
{!! $errors->first('latitude', '<span class="invalid-feedback" role="alert">:message</span>') !!} |
|
|
{!! $errors->first('latitude', '<span class="invalid-feedback" role="alert">:message</span>') !!} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="longitude" class="control-label">{{ __('outlet.longitude') }}</label> |
|
|
<label for="longitude" class="control-label">{{ __('outlet.longitude') }}</label> |
|
|
<input id="longitude" type="text" class="form-control{{ $errors->has('longitude') ? ' is-invalid' : '' }}" name="longitude" value="{{ old('longitude') }}" required> |
|
|
|
|
|
|
|
|
<input id="longitude" type="text" class="form-control{{ $errors->has('longitude') ? ' is-invalid' : '' }}" name="longitude" value="{{ old('longitude', request('longitude')) }}" required> |
|
|
{!! $errors->first('longitude', '<span class="invalid-feedback" role="alert">:message</span>') !!} |
|
|
{!! $errors->first('longitude', '<span class="invalid-feedback" role="alert">:message</span>') !!} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -63,7 +63,7 @@ |
|
|
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" |
|
|
integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" |
|
|
crossorigin=""></script> |
|
|
crossorigin=""></script> |
|
|
<script> |
|
|
<script> |
|
|
var mapCenter = [{{ config('leaflet.map_center_latitude') }}, {{ config('leaflet.map_center_longitude') }}]; |
|
|
|
|
|
|
|
|
var mapCenter = [{{ request('latitude', config('leaflet.map_center_latitude')) }}, {{ request('longitude', config('leaflet.map_center_longitude')) }}]; |
|
|
var map = L.map('mapid').setView(mapCenter, {{ config('leaflet.zoom_level') }}); |
|
|
var map = L.map('mapid').setView(mapCenter, {{ config('leaflet.zoom_level') }}); |
|
|
|
|
|
|
|
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
|
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
|
|
|