Viewing file: f8b93c3fe399bcb5b789298e6d3c9c1884e6ee40.php (4.17 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.edit_restaurant')); ?>
<?php $__env->startSection('css'); ?> <link href="<?php echo e(asset('vendor/jquery-steps/css/jquery.steps.css')); ?>" rel="stylesheet"> <?php $__env->stopSection(); ?>
<?php $__env->startSection('main-content'); ?> <div class="row page-titles mx-0"> <div class="col-sm-6 p-md-0"> <div class="welcome-text"> <h4><?php echo e(trans('layout.restaurant')); ?></h4> <p class="mb-0"><?php echo e(trans('layout.restaurant_edit')); ?></p> </div> </div> <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="javascript:void(0)"><?php echo e(trans('layout.home')); ?></a></li> <li class="breadcrumb-item"><a href="<?php echo e(route('restaurant.index')); ?>"><?php echo e(trans('layout.restaurant')); ?></a></li> <li class="breadcrumb-item active"><a href="javascript:void(0)"><?php echo e(trans('layout.edit')); ?></a></li> </ol> </div> </div> <!-- row --> <div class="row"> <div class="col-xl-12 col-xxl-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo e(trans('layout.edit')); ?></h4> </div> <div class="card-body"> <form action="<?php echo e(route('restaurant.update',[$restaurant])); ?>" method="post" id="step-form-horizontal" class="step-form-horizontal" enctype="multipart/form-data"> <?php echo method_field('PUT'); ?> <?php echo $__env->make('restaurant.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </form> </div> </div> </div> </div> <input id="api_key" type="hidden" value="<?php echo e(isset(json_decode(get_settings('site_setting'))->api_key)?json_decode(get_settings('site_setting'))->api_key:''); ?>"> <?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?> <script src="<?php echo e(asset('vendor/jquery-steps/build/jquery.steps.min.js')); ?>"></script> <script src="<?php echo e(asset('js/plugins-init/jquery-steps-init.js')); ?>"></script> <?php if(!env('APP_DEMO')): ?> <script> $('#locationInput').on('keyup', function(e) { e.preventDefault(); const cityname = $(this).val(); const key = $('#api_key').val(); if (key){ const search_string = "https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants+in+"+cityname+"&sensor=false&key="+key+""; $.ajax({ url: search_string }).done( function ( data ) { $('.city-par').removeClass('d-none'); let html_city = ''; $.each(data['results'], function(index,value){ html_city+=`<li class="p-1 locationCity" data-lat="${value.geometry.location.lat}" data-long="${value.geometry.location.lng}" data-address="${value.formatted_address}"> ${value.formatted_address}</li>` }); $("#inputShowCity").html(html_city); }); } }); $(document).on('click', '.locationCity', function (e) { e.preventDefault(); const lat = $(this).attr('data-lat'); const long = $(this).attr('data-long'); const address = $(this).attr('data-address'); $('#lat').val(lat) $('#long').val(long) $('#locationInput').val(address) $('.city-par').addClass('d-none'); }); </script> <?php endif; ?> <script> $('#multirestaurant-tooltip').tooltip() </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/multirest.picotech.app/public_html/resources/views/restaurant/edit.blade.php ENDPATH**/ ?>
|