@php $latAttributes = [ 'id' => $id . '_lat', 'class' => 'form-control', 'maxlength' => 50, 'data-toggle' => (isset($errors) && $errors->has($errorLatKey) ? 'tooltip': null), 'title' => (isset($errors) && $errors->has($errorLatKey) ? $errors->first($errorLatKey): null) ]; $lngAttributes = [ 'id' => $id . '_lng', 'class' => 'form-control', 'maxlength' => 50, 'data-toggle' => (isset($errors) && $errors->has($errorLngKey) ? 'tooltip': null), 'title' => (isset($errors) && $errors->has($errorLngKey) ? $errors->first($errorLngKey): null) ]; if (!$enabled) { $latAttributes['disabled'] = true; $lngAttributes['disabled'] = true; } @endphp
{!! html()->label(ucfirst($label))->for($id)->attributes(['class' => 'control-label']) !!}
@if($enabled)
{{ html()->text($name . '_address', '')->attributes([ 'id' => $id . '_address', 'class' => 'form-control', 'maxlength' => 150, 'placeholder' => trans("backend.find_address") ]) }}
@endif
{!! html()->label(trans("backend.latitude"))->for($id . '_lat')->attributes(['class' => 'control-label pull-left']) !!} {{ html()->text($name . '[lat]', $value["lat"])->attributes($latAttributes) }}
{!! html()->label(trans("backend.longitude"))->for($id . '_lng')->attributes(['class' => 'control-label pull-left']) !!} {{ html()->text($name . '[lng]', $value["lng"])->attributes($lngAttributes) }}
{!! html()->hidden($name . '[zoom]')->value($value["zoom"])->attributes(['id' => $id . '_zoom']) !!}
@if(!empty($info)) {{ $info }} @endif