Server IP : 66.29.132.124 / Your IP : 3.145.105.199 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/modules/Tour/Views/frontend/layouts/details/ |
Upload File : |
@php $terms_ids = $row->tour_term->pluck('term_id'); $attributes = \Modules\Core\Models\Terms::getTermsById($terms_ids); @endphp @if(!empty($terms_ids) and !empty($attributes)) @foreach($attributes as $attribute ) @php $translate_attribute = $attribute['parent']->translateOrOrigin(app()->getLocale()) @endphp @if(empty($attribute['parent']['hide_in_single'])) <div class="g-attributes {{$attribute['parent']->slug}} attr-{{$attribute['parent']->id}}"> <h3>{{ $translate_attribute->name }}</h3> @php $terms = $attribute['child'] @endphp <div class="list-attributes"> @foreach($terms as $term ) @php $translate_term = $term->translateOrOrigin(app()->getLocale()) @endphp <div class="item {{$term->slug}} term-{{$term->id}}"> @if(!empty($term->image_id)) @php $image_url = get_file_url($term->image_id, 'full'); @endphp <img src="{{$image_url}}" class="img-responsive" alt="{{$translate_term->name}}"> @else <i class="{{ $term->icon ?? "icofont-check-circled icon-default" }}"></i> @endif {{$translate_term->name}}</div> @endforeach </div> </div> @endif @endforeach @endif