Server IP : 66.29.132.124 / Your IP : 18.223.210.196 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/storage/framework/views/ |
Upload File : |
<div class="filter-item"> <div class="form-group"> <i class="field-icon icofont-beach"></i> <div class="form-content"> <?php $cat_ids = Request::query('cat_id'); $cat_name = ""; $list_cat_json = []; $traverse = function ($categories, $prefix = '') use (&$traverse, &$list_cat_json , &$cat_name , $cat_ids) { foreach ($categories as $category) { $translate = $category->translateOrOrigin(app()->getLocale()); if (!empty($cat_ids[0]) and $cat_ids[0] == $category->id){ $cat_name = $translate->name; } $list_cat_json[] = [ 'id' => $category->id, 'title' => $prefix . ' ' . $translate->name, ]; $traverse($category->children, $prefix . '-'); } }; $traverse($tour_category); ?> <div class="smart-search"> <input type="text" class="smart-select parent_text form-control" readonly placeholder="<?php echo e(__("All Category")); ?>" value="<?php echo e($cat_name); ?>" data-default="<?php echo e(json_encode($list_cat_json)); ?>"> <input type="hidden" class="child_id" name="cat_id[]" value="<?php echo e($cat_ids[0] ?? ""); ?>"> </div> </div> </div> </div><?php /**PATH /home/wavevlvu/book24.ng/modules/Tour/Views/frontend/layouts/search-map/fields/category.blade.php ENDPATH**/ ?>