Файловый менеджер - Редактировать - /home/clickysoft/public_html/rgr.clickysoft.net/storage/framework/views/135839bfe5bfba26670ee6361a336182e5889c18.php
Назад
<?php $__env->startSection('title'); ?> <?php if(false): ?> Verify Email address First <?php else: ?> Practices <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <style> .nearistDeactice { pointer-events: none; background: #cfcfcf; } </style> <?php if(false): ?> <!-- BANNER SECTION BEGIN --> <section class="search-banner"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-12"> <div class="listing-box text-white"> <?php echo $__env->make('layouts.flash-message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> Before proceeding, please check your email for a verification link. If you did not receive the <a href=" /email/resend" class="d-inline btn btn-link p-0"> click here to request another </a>. </div> </div> </div> </div> </section> <?php else: ?> <!-- BANNER SECTION BEGIN --> <section class="search-banner"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-12"> <form action="/" method="GET"> <div class="main-flex-btn"> <div class="search-banner-fields"> <div class="treatment-field"> <select class="form-control" name="treatments" id="treatments"> <option value=""></option> <?php $__currentLoopData = $allTreatments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $treatments): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(request()->treatments == $treatments->id ? 'selected' : ''); ?> value="<?php echo e($treatments->id); ?>"><?php echo e($treatments->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="practice-bar"> <input type="button" id="nearist" onclick="showlocation()" class="btn btn-default text-dark " tabindex="-1" value="Sort by closest practice to me"> <input type="button" id="nearist2" onclick="showlocation()" class="btn btn-default text-white mobile" tabindex="-1" value="Sort by closest practice to me"> <input type="hidden" name="lat" id="lat" value=""> <input type="hidden" name="long" id="long" value=""> </div> <div class="treatment-field"> <select class="form-control" name="practice_id" id="practice_id"> <option value=""></option> <?php $__currentLoopData = $allPractices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $practice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $practiceSpecialities = \App\Models\PracticeSpeciality::getByPracticeIdToSpecialityIds($practice->id); ?> <?php if(false): ?> <?php elseif(count($practiceSpecialities) == 0): ?> <?php else: ?> <option <?php echo e(request()->practice_id == $practice->id ? 'selected' : ''); ?> value="<?php echo e($practice->id); ?>"><?php echo e($practice->name); ?></option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="search-icon-btn"> <button type="submit" class="search-icon-link"><i class="fa fa-search" aria-hidden="true"></i></button> <button type="button" class="search-mob-btn">Search</button> </div> </div> <p class="text-white"><strong> To search for the closest practices, please allow the browser location option.</strong></p> </form> <div class="listing-box"> <ul class="listing-box-main"> </ul> </div> </div> </div> </div> </section> <!-- BANNER SECTION END --> <!-- DETAIL SECTION BEGIN --> <section class="detail-sec"> <div class="container-fluid"> <div class="row"> <?php $__empty_1 = true; $__currentLoopData = $practices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $practice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <?php $practiceSpecialities = \App\Models\PracticeSpeciality::getByPracticeIdToSpecialityIds($practice->id); ?> <?php if(false): ?> <?php elseif(count($practiceSpecialities) == 0): ?> <?php else: ?> <div class="col-md-3 col-sm-6 col-12 pt-5"> <div class="main-detail-box <?php echo e($practice->is_featured == 1 ? 'gold-status' : ''); ?>"> <?php if($practice->is_featured == 1): ?> <div class="text-right gold"> <i class="fa fa-star"></i> </div> <?php endif; ?> <div class="detail-img-box"> <img src="<?php echo e(config('global.practices_upload')); ?><?php echo e($practice->profile_name); ?>" alt="image" class="img-fluid"> </div> <h4 class="detail-box-heading"><?php echo e($practice->name); ?></h4> <div class="detail-btns"> <?php if(count($practiceSpecialities) > 0): ?> <a href="/practice/<?php echo e($practice->id); ?>/refer-now" class="refer-btn">Refer Now</a> <?php endif; ?> <a href="javascript:;" class="more-info-btn other-info" data-id="<?php echo e($practice->id); ?>">Other Info</a> <a href="/practice/<?php echo e($practice->id); ?>" class="more-info-btn">More Info</a> </div> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <h4 class="text-center"> No Practices Found </h4> <?php endif; ?> </div> <?php if(count($practices) > 12): ?> <?php endif; ?> </div> </section> <!-- DETAIL SECTION END --> <div id="other-info" class="modal detail-btns" tabindex="-1" role="dialog"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Other Information</h5> </div> <div class="modal-body append-other-info"></div> <div class="modal-footer"> <button type="button" class="btn btn-default refer-btn" data-dismiss="modal">Close</button> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDCNf8ukepsehUSLC22cK61AHUIkoXJibI&libraries=places"></script> <script> $('.other-info').on('click', function (){ var id = $(this).data('id'); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ url: "<?php echo e(route('practices.info')); ?>", method: 'post', data: {id:id}, success: function (result) { if (result.status == true) { $('.append-other-info').empty().append(result.data.other_info); $('#other-info').modal('show'); } } }); }) $(document).ready(function () { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ url: "<?php echo e(route('practices.treatments')); ?>", method: 'post', data: { treatments: $('#treatments option:selected').val(), }, success: function (result) { console.log(result.data); $('#practice_id').empty(); $('#practice_id').append(result.data); } }); $('#treatments').on('change', function (e) { var treatments = $('#treatments').val(); $.ajax({ url: "<?php echo e(route('practices.treatments')); ?>", method: 'post', data: { treatments: treatments, }, success: function (result) { console.log(result.data); $('#practice_id').empty(); $('#practice_id').append(result.data); } }); }); }); // $(document).ready(function() { // navigator.permissions.query({ // name: 'geolocation' // }) // .then(() => { // alert('allowed') // }).catch(() => { // alert('not allowed') // $('#nearist').removeClass('nearistActice'); // }) // }) $('#treatments').select2({ placeholder: { id: '', text: 'Please Select Speciality' }, allowClear: true }).trigger('change'); $('#practice_id').select2({ placeholder: { id: '', text: 'Please Select Practice' }, allowClear: true }).trigger('change'); var map = null; var marker; function showlocation() { if (navigator.geolocation) { $('#nearist').addClass('nearistActice'); $('#nearist').removeClass('nearistDeactice'); $('#nearist').attr('readonly', true); $('#nearist').attr('value', 'Sort by closest practice to me'); navigator.geolocation.getCurrentPosition(callback, error); } else { console.warn("geolocation IS NOT available"); } } function error(err) { console.warn('ERROR(' + err.code + '): ' + err.message); $('#nearist').removeClass('nearistActice'); $('#nearist').addClass('nearistDeactice'); $('#nearist').attr('readonly', false); $('#nearist').attr('value', 'Not Sort by closest practice'); }; if ("geolocation" in navigator) { $('.shadowactive').addClass('shadowactive'); navigator.geolocation.getCurrentPosition(callback, error); } else { $('.shadowactive').removeClass('shadowactive'); alert('Must have to allow location'); console.warn("geolocation IS NOT available"); } function callback(position) { $('#nearist').addClass('nearistActice'); console.log(position); var lat = position.coords.latitude; var lon = position.coords.longitude; document.getElementById('lat').value = lat; document.getElementById('long').value = lon; var latLong = new google.maps.LatLng(lat, lon); map.setZoom(16); map.setCenter(latLong); } </script> <?php $__env->stopSection(); ?> <?php endif; ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/clickysoft/public_html/rgr.clickysoft.net/resources/views/practices.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка