Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/storage/framework/views/e3c5db28d8b23ddc57f73cc5e72bab2f.php
Назад
<?php $__env->startSection('title', 'Home'); ?> <?php $__env->startSection('content'); ?> <!-- BANNER SECTION BEGIN --> <section class="banner-cont-sec"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="banner-cont-txt"> <?php if(isset($page->sections[0])): ?> <h2> <?php echo e($page->sections[0]->title); ?> <span> <?php echo e($page->sections[0]->description); ?></span> </h2> <?php else: ?> <h2> Default Title <span>Default Description</span> </h2> <?php endif; ?> <div class="search-bar-flex"> <div class="search-item"> <input type="search" id="search-input" class="form-control" placeholder="Where will your next adventure take you?" /> <div id="search-results" style="position: absolute; z-index: 999; background: white; width: 100%;"></div> </div> <div class="search-btn"> <button type="button" class="btn btn-primary" id="search-button"> <span><i class="fa fa-search" aria-hidden="true"></i></span> Search </button> </div> </div> </div> </div> </div> </div> </section> <!-- BANNER SECTION END --> <!-- TRAVEL ADVISOR SECTION BEGIN --> <section class="travel-advisor-sec-bg"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="travel-heading-cont"> <h2>Travel <span>Advisors</span></h2> </div> <div class="travel-advisor-slider"> <div class="slider responsive-travel"> <?php $__empty_1 = true; $__currentLoopData = $topRatedAgents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div> <div class="travel-agents-boxes"> <div class="travel-inner-flex"> <div class="travel-inner-img"> <img src="<?php echo e($agent->profile_image ? asset('assets/img/profiles/' . $agent->profile_image) : asset('assets/admin/img/profiles/default.png')); ?>" alt="image" class="img-fluid" /> </div> <div class="travel-inner-react"> <h6> <?php echo e($agent->full_name); ?> <?php $__currentLoopData = $agent->badges; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $badge): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $__currentLoopData = $badge->getMedia('badge_image'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $media): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <img src="<?php echo e($media->getUrl()); ?>" alt="<?php echo e($badge->title); ?>" class="img-fluid" data-toggle="<?php echo e($badge->description); ?>" title="<?php echo e($badge->description); ?>" width="24" height="28"> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </h6> <div class="rating-stars"> <?php $rating = $agent->user_reviews_avg_rating; $fullStars = floor($rating); $halfStar = $rating - $fullStars >= 0.5; $emptyStars = 5 - ($fullStars + ($halfStar ? 1 : 0)); ?> <?php for($i = 1; $i <= $fullStars; $i++): ?> <i class="fa fa-star" aria-hidden="true"></i> <?php endfor; ?> <?php if($halfStar): ?> <i class="fa fa-star-half-o" aria-hidden="true"></i> <?php endif; ?> <?php for($i = 1; $i <= $emptyStars; $i++): ?> <i class="fa fa-star-o" aria-hidden="true"></i> <?php endfor; ?> </div> </div> </div> <div class="business-text"> <p><?php echo e($agent->specialist); ?></p> </div> <div class="hotel-listing"> <ul> <?php $__currentLoopData = $agent->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agentAssociatedCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($agentAssociatedCategory->title); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <div class="see-more-btn"> <?php if(auth()->check()): ?> <?php if(auth()->user()->hasRole('User')): ?> <a href="<?php echo e(route('user.chat', ['user' => $agent->uuid])); ?>" class="btn btn-primary" target="_blank">Contact</a> <?php endif; ?> <a href="javascript:void(0)" class="see-more-link" data-id=<?php echo e($agent->id); ?>>See more</a> <?php else: ?> <a href="<?php echo e(route('login')); ?>" class="btn btn-primary">Contact</a> <a href="<?php echo e(route('login')); ?>" class="see-more-link" data-id=<?php echo e($agent->id); ?>>See more</a> <?php endif; ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="cruises-safari-grid"> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="cruises-safari-box"> <img src="<?php echo e($category->getFirstMediaUrl('featured_image')); ?>" alt="image" class="img-fluid" /> <div class="add-cont"> <h6><?php echo e($category->title); ?></h6> <p> <?php echo \Illuminate\Support\Str::limit($category->short_description, 150); ?> </p> <a href="<?php echo e(route('category.detail', $category->slug)); ?>">View Detail</a> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> </section> <!-- TRAVEL ADVISOR SECTION END --> <!-- SPECIAL OFFER SECTION BEGIN --> <section class="special-offer-sec"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="receive-offer"> <?php if(isset($page->sections[1])): ?> <h4> <?php echo e($page->sections[1]->title); ?> <span> <?php echo e($page->sections[1]->description); ?></span> </h4> <?php else: ?> <h4>Default Title</h4> <span>Default Description</span> <?php endif; ?> <div class="newsletter-email"> <input type="email" class="form-control" id="newsletterEmail" placeholder="Email" required /> <button type="button" class="btn btn-primary" id="subscribe-button">Send</button> </div> </div> </div> </div> </div> </section> <!-- SPECIAL OFFER SECTION END --> <!-- LOREM IPSUM SECTION BEGIN --> <section class="lorem-ipsum-sec-bg"> <div class="container-fluid"> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6 col-12"> <div class="lrty-imag"> <img src="<?php echo e(isset($page->sections[4]) ? $page->sections[4]->getFirstMediaUrl('files', 'image') : asset('assets/front/images/lrt2.png')); ?>" class="img-fluid" alt="image" /> <div class="lrty2-img"> <img src="<?php echo e(isset($page->sections[3]) ? $page->sections[3]->getFirstMediaUrl('files', 'image') : asset('assets/front/images/lrt1.png')); ?>" class="img-fluid" alt="image" /> </div> </div> </div> <div class="col-lg-6 col-md-6 col-sm-6 col-12"> <div class="lorem-box-cont"> <?php if(isset($page->sections[2])): ?> <h4><?php echo e($page->sections[2]->title); ?></h4> <p><?php echo e($page->sections[2]->description); ?></p> <?php else: ?> <h4>Default Title</h4> <p>Default Description</p> <?php endif; ?> <a href="<?php echo e(route('login')); ?>" class="btn btn-primary">Join Now</a> </div> </div> </div> </div> </section> <!-- LOREM IPSUM SECTION END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('front-scripts'); ?> <script> function showToast(message, type) { toastr[type](message); } $(document).ready(function() { $('#subscribe-button').click(function() { const email = $('#newsletterEmail').val(); if (!email) { showToast('Please enter a valid email.', 'info'); $(this).prop('disabled', true); setTimeout(() => { $(this).prop('disabled', false); }, 2000); // Disable for 2 seconds return; } const button = $(this); button.prop('disabled', true); $.ajax({ url: '/subscribe', // Adjust the URL as needed type: 'POST', data: { email: email, _token: '<?php echo e(csrf_token()); ?>' // Include CSRF token }, success: function(response) { if (response.success) { showToast('Subscription successful!', 'success'); $('#newsletterEmail').val(''); // Clear the input // Disable the button for 1 minute button.prop('disabled', true); setTimeout(() => { location.reload(); }, 2000); // 1 minute in milliseconds } }, error: function(xhr) { if (xhr.status === 422) { let errors = xhr.responseJSON.errors; if (errors.email) { showToast(errors.email[0], 'error'); // Show the error message for email } } else { showToast('An unexpected error occurred.', 'info'); } // Disable the button for 2 seconds button.prop('disabled', true); setTimeout(() => { button.prop('disabled', false); }, 2000); // 2 seconds in milliseconds } }); }); }); </script> <script> $(document).ready(function() { $('#search-input').on('keyup', function() { let query = $(this).val(); if (query.length > 2) { $.ajax({ url: "<?php echo e(route('search.all')); ?>", // Define the route for search method: 'GET', data: { search: query }, success: function(response) { $('#search-results').empty().show(); if (response.results.length > 0) { // Append search results response.results.forEach(result => { $('#search-results').append(` <a href="${result.url}" class="search-result-item"> <div class="p-2">${result.title}</div> </a> `); }); } else { // If no results found, display message $('#search-results').append(` <div class="p-2 text-center">No results found</div> `); } }, error: function() { $('#search-results').empty().hide(); // Optionally handle errors here } }); } else { $('#search-results').hide(); // Hide the search results if query length is too short } }); // Hide results when clicking outside $(document).click(function(e) { if (!$(e.target).closest('#search-input, #search-results').length) { $('#search-results').hide(); } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('front.layouts.master', ['is_travel_agent' => false], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/clickysoft/public_html/travel-guru.clickysoft.net/resources/views/front/home.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка