<div id="location-picker-<?php echo e($id); ?>" class="form-field-location form-group<?php echo e($parentHidden ? ' parent-hidden' : ''); ?>" style="<?php echo e(!empty($hide) ? 'display:none' : ''); ?>">
    <?php echo Form::label($id, ucfirst($label), array('class' => 'control-label')); ?>

    <div class="well">
        <?php if($enabled): ?>
            <div class="input-group location-picker-address-wrapper">
                <?php echo Form::text($name . '_address', '', array(
                    'id' => $id . '_address',
                    'class' => 'form-control',
                    'maxlength' => 150,
                    'disabled' => $enabled ? null : 'disabled',
                    'placeholder' => trans("backend.find_address")
                    )); ?>

                <span class="input-group-btn">
                    <button id="location_search_btn" name="btn-search-address" class="btn btn-default" type="button">OK</button>
                </span>
            </div>
        <?php endif; ?>
        <div class="location-map"></div>
        <div class="row location-coordinates">
            <div class="col-sm-6">
                <div class="form-group <?php $__errorArgs = [$errorLatKey];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                    <?php echo Form::label($id . '_lat', trans("backend.latitude"), array('class' => 'control-label pull-left')); ?>

                    <?php echo Form::text($name . '[lat]', $value["lat"], array(
                        'id' => $id . '_lat',
                        'class' => 'form-control',
                        'maxlength' => 50,
                        'disabled' => $enabled ? null : 'disabled',
                        'data-toggle' => (isset($errors) && $errors->has($errorLatKey) ? 'tooltip': null),
                        'title' => (isset($errors) && $errors->has($errorLatKey) ? $errors->first($errorLatKey): null)
                        )); ?>

                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group <?php $__errorArgs = [$errorLngKey];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> has-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>">
                    <?php echo Form::label($id . '_lng', trans("backend.longitude"), array('class' => 'control-label pull-left')); ?>

                    <?php echo Form::text($name . '[lng]', $value["lng"], array(
                        'id' => $id . '_lng',
                        'class' => 'form-control',
                        'maxlength' => 50,
                        'disabled' => $enabled ? null : 'disabled',
                        'data-toggle' => (isset($errors) && $errors->has($errorLngKey) ? 'tooltip': null),
                        'title' => (isset($errors) && $errors->has($errorLngKey) ? $errors->first($errorLngKey): null)
                        )); ?>

                </div>
            </div>
        </div>
        <?php echo Form::hidden($name . '[zoom]', $value["zoom"], array('id' => $id . '_zoom')); ?>

    </div>
    <?php if(!empty($info)): ?>
        <span id="helpBlock" class="help-block"><?php echo e($info); ?></span>
    <?php endif; ?>
</div>

<script>
    $(function(){
        var LocationPicker<?php echo e($id); ?> = new Eae.View.BackendLocationPicker({
            el: $("#generic_form_<?php echo e(RequestContext::get('generic_form_timestamp')); ?> #location-picker-<?php echo e($id); ?>"),
            fieldId: '<?php echo e($id); ?>',
            required: <?php echo json_encode($required, 15, 512) ?>,
            enabled: <?php echo json_encode($enabled, 15, 512) ?>,
            parent:  <?php echo empty($parent) ? 'false': json_encode($parent); ?>

        });
    });
</script>
<?php /**PATH /var/www/html/resources/views/admin/generic/components/forms/location.blade.php ENDPATH**/ ?>