Edit File: badd2359a10a45ecbf38b06be0bb57207a3567a8.php
<?php $__env->startSection('css'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php if(count($rows) > 0): ?> <div class="col-md-12 col-12"> <div class="form-group"> <div id="map" style="height: 400px; margin: 10px"></div> <input type="hidden" id="lat" value="31.121212"> <input type="hidden" id="lng" value="31.121212"> </div> </div> <?php else: ?> <div class="d-flex flex-column w-100 align-center mt-4"> <img src="http://127.0.0.1:8000/admin/app-assets/images/pages/404.png" alt=""> <span class="mt-2" style="font-family: cairo"><?php echo e(awtTrans('لا يوجد عناوين ')); ?></span> </div> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script> function initMap() { var map = new google.maps.Map(document.getElementById('map'), { zoom: 8, center: {lat: Number(<?php echo json_encode($rows, 15, 512) ?>[0].lat), lng: Number(<?php echo json_encode($rows, 15, 512) ?>[0].long)} }); $.each( <?php echo json_encode($rows, 15, 512) ?>, function( index, value ) { var marker = new google.maps.Marker({ position: {lat: Number(value.lat), lng: Number(value.long)}, map : map , }); addInfoWindow(marker, value.title); }); } function addInfoWindow(marker, message) { var infoWindow = new google.maps.InfoWindow({ content: message }); infoWindow.open(map, marker); google.maps.event.addListener(marker, 'click', function () { infoWindow.open(map, marker); }); } </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=<?php echo e($setting['google_places']); ?>&callback=initMap" type="text/javascript"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwineerc/public_html/resources/views/admin/clients/addresses.blade.php ENDPATH**/ ?>
Back to File Manager