Server IP : 66.29.132.124 / Your IP : 3.135.214.226 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/themes/Mytravel/Boat/frontend/layouts/search-map/fields/ |
Upload File : |
@if(!empty($field['attr']) and !empty($attr = \Modules\Core\Models\Attributes::find($field['attr']))) @php $attr_translate = $attr->translateOrOrigin(app()->getLocale()); if(request()->query('term_id')) $selected = \Modules\Core\Models\Terms::find(request()->query('term_id')); else $selected = false; $list_cat_json = []; @endphp @if($attr) <div class="item filter-item"> <div class="mb-0"> <div class="input-group border-bottom border-width-2 border-color-1"> <i class="icofont-paperclip d-flex align-items-center mr-2 text-primary font-weight-semi-bold font-size-22"></i> @foreach($attr->terms as $term) @php $translate = $term->translateOrOrigin(app()->getLocale()); $list_cat_json[] = [ 'id' => $term->id, 'title' => $translate->name, ];; @endphp @endforeach <div class="smart-search border-0 p-0 form-control height-40"> <input type="text" class="smart-select parent_text form-control font-weight-bold" readonly placeholder="{{__("All :name",['name'=>$attr_translate->name])}}" value="{{ $selected ? $selected->name ?? '' :'' }}" data-default="{{ json_encode($list_cat_json) }}"> <input type="hidden" class="child_id" name="terms[]" value="{{Request::query('term_id')}}"> </div> </div> </div> </div> @endif @endif