Server IP : 66.29.132.124 / Your IP : 18.191.28.200 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/User/frontend/profile/ |
Upload File : |
<?php $types = get_bookable_services(); if (empty($types)) return; $list_service = []; ?> <div class="profile-service-tabs"> <div class="service-nav-tabs mb-4"> <ul class="nav nav-tabs"> @php $i = 0; @endphp @foreach($types as $type=>$moduleClass) @php if(!$moduleClass::isEnable()) continue; if(!$user->hasPermissionTo($type.'_create')) continue; $services = $moduleClass::getVendorServicesQuery($user->id)->orderBy('id','desc')->paginate(6); if(empty($services->total())) continue; $list_service[$type] = $services; @endphp <li class="nav-item"> <a href="#" class="nav-link @if(!$i) active @endif" data-toggle="tab" data-target="#type_{{$type}}">{{$moduleClass::getModelName()}}</a> </li> @php $i++; @endphp @endforeach </ul> </div> <div class="tab-content"> @php $i = 0; @endphp @foreach($types as $type=>$moduleClass) @php if(!$moduleClass::isEnable()) continue; if(empty($list_service[$type])) continue; @endphp @if(view()->exists(ucfirst($type).'::frontend.profile.service') && $user->hasPermissionTo($type.'_create')) <div class="tab-pane fade @if(!$i) show active @endif" id="type_{{$type}}" role="tabpanel" aria-labelledby="pills-home-tab"> @include(ucfirst($type).'::frontend.profile.service',['services'=>$list_service[$type]]) </div> @php $i++; @endphp @endif @endforeach </div> </div>