File manager - Edit - /home/linknsbh/rassudr.online/resources/views/frontend/home/index-v3.blade.php
Back
@php $version = $basicInfo->theme_version; @endphp @extends('frontend.layout') @section('pageHeading') {{ __('Home') }} @endsection @section('metaKeywords') @if (!empty($seoInfo)) {{ $seoInfo->meta_keyword_home }} @endif @endsection @section('metaDescription') @if (!empty($seoInfo)) {{ $seoInfo->meta_description_home }} @endif @endsection @section('content') <!-- Home-area start--> <section class="hero-banner hero-banner-3 pb-100"> <div class="container"> <div class="banner-content mx-auto text-center"> <h1 class="title mb-30" data-aos="fade-up" data-aos-delay="100"> {{ !empty($sectionContent->hero_section_title) ? $sectionContent->hero_section_title : 'Find Anything From Nearest Location To Make A Booking' }} </h1> <div class="banner-filter-form mx-auto" data-aos="fade-up" data-aos-delay="150"> <div class="form-wrapper shadow-md bg-white p-20 rounded-pill"> <form id="homepage_search" action="{{ route('frontend.services') }}" method="get"> <div class="row justify-content-center align-items-center"> <div class="col-md-4 col-sm-6"> <div class="input-group"> <label for="service_location" class="text-gradient"><i class="fal fa-map-marker-alt"></i></label> <input type="text" id="service_location" name="location" class="form-control" placeholder="{{ __('Search By Location') }}"> <div class="vr"></div> </div> </div> <div class="col-md-4 col-sm-6"> <div class="input-group"> <label for="service_title" class="text-gradient"><i class="fal fa-clipboard-list"></i></label> <input type="text" id="service_name" name="service_title" class="form-control" placeholder="{{ __('Search Service') }}"> </div> </div> <div class="col-lg-4 col-md-4 col-sm-6"> <button type="submit" class="btn btn-lg btn-primary rounded-pill btn-gradient icon-start w-100"> <i class="fal fa-search"></i> {{ __('Find Now') }} </button> </div> </div> </form> </div> </div> </div> </div> <meta name="google-site-verification" content="aq49QwpQwLEZV7vlzFSSuTK-7FJVpHxHogkdUGVNHu8" /> <!-- Shape --> <div class="shape"> <svg class="shape-1" data-src="{{ asset('assets/frontend/images/shape/shape-1.svg') }}"></svg> <svg class="shape-2" data-src="{{ asset('assets/frontend/images/shape/shape-2.svg') }}"></svg> <svg class="shape-3" data-src="{{ asset('assets/frontend/images/shape/shape-4.svg') }}"></svg> <svg class="shape-4" data-src="{{ asset('assets/frontend/images/shape/shape-3.svg') }}"></svg> </div> </section> <!-- Home-area end --> @if (count($after_hero) > 0) @foreach ($after_hero as $cusHero) @if (isset($homecusSec[$cusHero->id])) @if ($homecusSec[$cusHero->id] == 1) @php $cusHeroContent = App\Models\CustomSectionContent::where('custom_section_id', $cusHero->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusHeroContent]) @endif @endif @endforeach @endif <!-- Category-area start --> @if ($secInfo->category_section_status == 1) <section class="category-area category-2"> <div class="container"> <div class="row"> @if (count($categories) == 0) <h4 class="text-center">{{ __('NO CATEGORIES FOUND') }}!</h4> @else <div class="col-12" data-aos="fade-up"> <div class="swiper category-slider-2"> <div class="swiper-wrapper"> @foreach ($categories as $category) <style> .category-area.category-2 .swiper-slide[data-category-id="{{ $category->id }}"] .bg-shape { background-color: #{{ $category->background_color }}; } </style> @php $serviceCount = App\Models\Services\Services::join( 'service_contents', 'service_contents.service_id', '=', 'services.id', ) ->where([['services.status', '=', 1], ['service_contents.category_id', '=', $category->id]]) ->count(); @endphp <div class="swiper-slide mb-40" data-category-id="{{ $category->id }}"> <div class="card text-center shadow-md"> <div class="card-img mb-10"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/category/' . $category->image) }}" alt="Image"> </div> <h4 class="card-title lc-1 mb-0"> <a href="{{ route('frontend.services', ['category' => $category->slug]) }}" target="_self" title="{{ $category->name }}"> {{ $category->name }} </a> </h4> </div> <div class="bg-shape bg-img" data-bg-image="{{ asset('assets/img/line-shape-1.png') }}"></div> </div> @endforeach </div> <div class="swiper-pagination category-2-pagination position-static mt-20"></div> </div> </div> @endif </div> </div> <div class="bg-shape h-auto"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/frontend/images/line-shape-2.png') }}" alt=""> </div> </section> @endif <!-- Category-area end --> @if (count($after_category) > 0) @foreach ($after_category as $cusCategory) @if (isset($homecusSec[$cusCategory->id])) @if ($homecusSec[$cusCategory->id] == 1) @php $cusCategoryContent = App\Models\CustomSectionContent::where('custom_section_id', $cusCategory->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusCategoryContent]) @endif @endif @endforeach @endif <!-- Works-area start --> @if ($secInfo->work_process_section_status == 1) <section class="works-area works-3 pt-100 pb-70"> <div class="container"> <div class="row"> <div class="col-12"> <div class="section-title title-center mb-50" data-aos="fade-up"> <h2 class="title"> {{ !empty($sectionContent->workprocess_section_title) ? $sectionContent->workprocess_section_title : 'How the Appointment Booking System Works ' }} </h2> </div> </div> <div class="col-12"> @if (count($FirstWorkProcess) == 0) <h4 class="text-center">{{ __('NO WORK PROCESS FOUND') }}!</h4> @else <div class="row align-items-center"> <div class="col-lg-3"> <div class="row"> @foreach ($FirstWorkProcess as $process) <style> .works-area.works-3 .card-icon.icon-bg{{ $loop->iteration }} { background-color: #{{ $process->background_color }}; box-shadow: 0 15px 30px -12px rgba({{ hexdec(substr($process->background_color, 0, 2)) }}, {{ hexdec(substr($process->background_color, 2, 2)) }}, {{ hexdec(substr($process->background_color, 4, 2)) }}, 0.7); } .works-area.works-3 .card:hover .card-title.first-title{{ $loop->iteration }} { color: #{{ $process->background_color }}; } </style> <div class="col-lg-12 col-sm-6 item-1" data-aos="fade-up"> <div class="card mb-30"> <div class="card-icon icon-bg{{ $loop->iteration }} mb-20 rounded-circle"> <i class="{{ $process->icon }}"></i> </div> <h4 class="card-title first-title{{ $loop->iteration }} lc-1 mb-15"> {{ $process->title }} </h4> <p class="card-text"> {{ $process->text }} </p> </div> </div> @endforeach </div> </div> <div class="col-lg-6" data-aos="fade-up"> <div class="image mb-30"> <img class="lazyload blur-up" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/' . @$sectionContent->work_process_background_img) }}" alt="work process Image"> </div> </div> <div class="col-lg-3"> <div class="row"> @foreach ($secondProcesses as $secondProcesse) <style> .works-area.works-3 .card-icon.icon-bg1{{ $loop->iteration }} { background-color: #{{ $secondProcesse->background_color }}; box-shadow: 0 15px 30px -12px rgba({{ hexdec(substr($secondProcesse->background_color, 0, 2)) }}, {{ hexdec(substr($secondProcesse->background_color, 2, 2)) }}, {{ hexdec(substr($secondProcesse->background_color, 4, 2)) }}, 0.7); } .works-area.works-3 .card:hover .card-title.first-title{{ $loop->iteration }} { color: #{{ $secondProcesse->background_color }}; } </style> <div class="col-lg-12 col-sm-6 item-3" data-aos="fade-up"> <div class="card mb-30"> <div class="card-icon icon-bg1{{ $loop->iteration }} mb-20 rounded-circle"> <i class="{{ $secondProcesse->icon }}"></i> </div> <h4 class="card-title first-title{{ $loop->iteration }} lc-1 mb-15"> {{ $secondProcesse->title }} </h4> <p class="card-text"> {{ $secondProcesse->text }} </p> </div> </div> @endforeach </div> </div> </div> @endif </div> </div> </div> <!-- Shape --> <div class="shape"> <svg class="shape-1" data-src="{{ asset('assets/frontend/images/shape/shape-5.svg') }}"></svg> <svg class="shape-2" data-src="{{ asset('assets/frontend/images/shape/shape-6.svg') }}"></svg> <svg class="shape-3" data-src="{{ asset('assets/frontend/images/shape/shape-7.svg') }}"></svg> <svg class="shape-4" data-src="{{ asset('assets/frontend/images/shape/shape-8.svg') }}"></svg> </div> </section> @endif <!-- Works-area end --> @if (count($after_work_process) > 0) @foreach ($after_work_process as $work_process) @if (isset($homecusSec[$work_process->id])) @if ($homecusSec[$work_process->id] == 1) @php $work_processContent = App\Models\CustomSectionContent::where('custom_section_id', $work_process->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $work_processContent]) @endif @endif @endforeach @endif <!-- Service-area start --> @if ($secInfo->feature_section_status == 1) <section class="service-area service-1 pb-100"> <div class="container"> <div class="row"> <div class="col-12"> <div class="section-title title-inline mb-50" data-aos="fade-up"> <h2 class="title"> {{ !empty($sectionContent->featured_service_section_title) ? $sectionContent->featured_service_section_title : 'Our Top Featured Services' }} </h2> <!-- Slider navigation buttons --> @if ($featured_services->count() > 0) <div class="slider-navigation"> <button type="button" title="Slide prev" class="slider-btn rounded-circle" id="product-inline-slider-1-prev"> <i class="fal fa-angle-left"></i> </button> <button type="button" title="Slide next" class="slider-btn rounded-circle" id="product-inline-slider-1-next"> <i class="fal fa-angle-right"></i> </button> </div> @endif </div> </div> <div class="col-12"> @if ($featured_services->count() == 0) <h4 class="text-center">{{ __('NO SERVICE FOUND') . '!' }}</h4> @else <!-- Slider main container --> <div class="swiper product-inline-slider" id="product-inline-slider-1" data-slides-per-view="2" data-swiper-loop="false" data-aos="fade-up"> <!-- Additional required wrapper --> <div class="swiper-wrapper"> @foreach ($featured_services as $service) <!-- Slides --> <div class="swiper-slide"> <div class="row g-0 product-default product-column border radius-md mb-25 align-items-center"> <figure class="product-img col-xl-6"> <a href="{{ route('frontend.service.details', ['slug' => $service->slug, 'id' => $service->id]) }}" title="Image" target="_self" class="lazy-container ratio ratio-2-3"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/services/' . $service->service_image) }}" alt="Service"> </a> </figure> <div class="product-details col-xl-6"> <div class="d-flex align-items-center justify-content-between gap-2"> <a href="{{ route('frontend.services', ['category' => $service->categoryslug]) }}"> <span class="tag font-sm">{{ $service->categoryName }}</span> </a> @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkWishList($service->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif <a href="{{ $checkWishList == false ? route('addto.wishlist', $service->id) : route('remove.wishlist', $service->id) }}" class="btn btn-icon border rounded-circle {{ $checkWishList == false ? '' : 'wishlist-active' }}" title="{{ $checkWishList == false ? __('Save to Wishlist') : __('Saved') }}"> <i class="fal fa-heart"></i> </a> </div> <h6 class="product-title mb-0"> <a href="{{ route('frontend.service.details', ['slug' => $service->slug, 'id' => $service->id]) }}" target="_self" title="{{ $service->name }}">{{ truncateString($service->name, 60) }}</a> </h6> <input type="hidden" value="{{ $service->language_id }}"> <div class="author mb-10 mt-1"> @if ($service->vendor_id != 0) @if ($service->vendor->photo != null) <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}"> <img class="lazyload blur-up" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/admin/img/vendor-photo/' . $service->vendor->photo) }}" alt="Image"> </a> @else <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/user.png') }}" alt="Vendor"> </a> @endif <span class="font-sm"> {{ __('By') }} <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}">{{ $service->vendor->username }}</a> </span> @else <a href="{{ route('frontend.vendor.details', ['username' => $admin->username]) }}" target="_self" title="{{ $admin->username }}"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/admins/' . $admin->image) }}" alt="Vendor"> </a> <span class="font-sm"> {{ __('By') }} <a href="{{ route('frontend.vendor.details', ['username' => $admin->username]) }}" target="_self" title="{{ $admin->username }}">{{ $admin->username }}</a> </span> @endif </div> @if (!empty($service->address)) <span class="font-sm icon-start"><i class="fal fa-map-marker-alt"></i>{{ truncateString($service->address, 30) }}</span> @endif @if ($service->zoom_meeting == 1) <span class="font-sm icon-start"><i class="fal fa-video"></i>{{ __('Online') }}</span> @endif <div class="product-bottom justify-content-between mt-10 pt-10 border-top"> <div class="product-price mt-10 mb-1"> <span class="h6 new-price">{{ symbolPrice($service->price) }}</span> <span class="prev-price font-sm">{{ $service->prev_price ? symbolPrice($service->prev_price) : '' }}</span> </div> <a href="javaScript:void(0)" class="bookNowBtn btn btn-sm btn-outline-2 rounded-pill" data-bs-toggle="modal" data-bs-target="#makeBooking" data-id="{{ $service->id }}" title="Book Now" target="_self"> {{ __('Book Now') }}</a> </div> </div> </div><!-- product-default --> </div> @endforeach </div> <!-- If we need pagination --> <div class="swiper-pagination position-static" id="product-inline-slider-1-pagination"></div> </div> @endif </div> </div> </div> </section> @endif <!-- Service-area end --> @if (count($after_featured_service) > 0) @foreach ($after_featured_service as $cusFeature) @if (isset($homecusSec[$cusFeature->id])) @if ($homecusSec[$cusFeature->id] == 1) @php $cusFeatureContent = App\Models\CustomSectionContent::where('custom_section_id', $cusFeature->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusFeatureContent]) @endif @endif @endforeach @endif <!-- Banner collection start --> @if ($secInfo->banner_section == 1) <div class="banner-collection pb-70"> <div class="container"> <div class="row"> @foreach ($banners as $banner) <div class="col-sm-6" data-aos="fade-up"> <a href="{{ $banner->url }}" target="_blank" title="Banner"> <div class="banner-sm content-middle bg-img mb-30 ratio ratio-21-9 radius-lg" data-bg-image="{{ asset('assets/img/banners/' . $banner->image) }}"> <div class="banner-content p-30"> <div class="content-inner"> <h3 class="mb-30">{{ $banner->title }}</h3> </div> </div> </div> </a> </div> @endforeach </div> </div> </div> @endif <!-- Banner collection end --> @if (count($after_banner) > 0) @foreach ($after_banner as $cusBanner) @if (isset($homecusSec[$cusBanner->id])) @if ($homecusSec[$cusBanner->id] == 1) @php $cusBannerContent = App\Models\CustomSectionContent::where('custom_section_id', $cusBanner->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusBannerContent]) @endif @endif @endforeach @endif <!-- Service-area start --> @if ($secInfo->latest_service_section_status == 1) <section class="service-area service-1 pb-100"> <div class="container"> <div class="row"> <div class="col-12"> <div class="section-title title-center mb-50" data-aos="fade-up"> <h2 class="title mb-20"> {{ !empty($sectionContent->latest_service_section_title) ? $sectionContent->latest_service_section_title : 'Most Popular Booking Services We Offer ' }} </h2> @if (count($categories) > 0) <div class="tabs-navigation"> <ul class="nav nav-tabs" data-hover="fancyHover"> <li class="nav-item active"> <button class="nav-link hover-effect active btn-md rounded-pill" data-bs-toggle="tab" data-bs-target="#defaultTab" type="button">{{ __('All Services') }}</button> </li> @foreach ($categories as $category) <li class="nav-item"> <button class="nav-link hover-effect btn-md rounded-pill" data-bs-toggle="tab" data-bs-target="#tab{{ $category->id }}" type="button">{{ $category->name }}</button> </li> @endforeach </ul> </div> @endif </div> </div> <div class="col-12"> @if (count($services) == 0) <h4 class="text-center">{{ __('NO SERVICE FOUND') }}!</h4> @else <div class="tab-content" data-aos="fade-up"> <div class="tab-pane fade show active" id="defaultTab"> <div class="row"> @foreach ($services as $service) <div class="col-sm-6" data-aos="fade-up"> <div class="row g-0 product-default product-column border radius-md mb-25 align-items-center"> <figure class="product-img col-xl-6"> <a href="{{ route('frontend.service.details', ['slug' => $service->slug, 'id' => $service->id]) }}" title="Image" target="_self" class="lazy-container ratio ratio-2-3"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/services/' . $service->service_image) }}" alt="Service"> </a> </figure> <div class="product-details col-xl-6"> <div class="d-flex align-items-center justify-content-between gap-2"> <a href="{{ route('frontend.services', ['category' => $service->categoryslug]) }}"> <span class="tag font-sm">{{ $service->categoryName }}</span> </a> @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkWishList($service->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif <a href="{{ $checkWishList == false ? route('addto.wishlist', $service->id) : route('remove.wishlist', $service->id) }}" class="btn btn-icon border rounded-circle {{ $checkWishList == false ? '' : 'wishlist-active' }}" title="{{ $checkWishList == false ? __('Save to Wishlist') : __('Saved') }}"> <i class="fal fa-heart"></i> </a> </div> <h6 class="product-title mb-0"> <a href="{{ route('frontend.service.details', ['slug' => $service->slug, 'id' => $service->id]) }}" target="_self" title="{{ $service->name }}"> {{ truncateString($service->name, 60) }} </a> </h6> <input type="hidden" value="{{ $service->language_id }}"> <div class="author mb-10 mt-1"> @if ($service->vendor_id != 0) @if ($service->vendor->photo != null) <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}"> <img class="lazyload blur-up" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/admin/img/vendor-photo/' . $service->vendor->photo) }}" alt="Image"> </a> @else <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/user.png') }}" alt="Vendor"> </a> @endif <span class="font-sm"> {{ __('By') }} <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}">{{ $service->vendor->username }}</a> </span> @else <a href="{{ route('frontend.vendor.details', ['username' => $admin->username]) }}" target="_self" title="{{ $admin->username }}"> <img class="lazyload blur-up" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/admins/' . $admin->image) }}" alt="Image"> </a> <span class="font-sm"> {{ __('By') }} <a href="{{ route('frontend.vendor.details', ['username' => $admin->username]) }}" target="_self" title="{{ $admin->username }}">{{ $admin->username }}</a> </span> @endif </div> @if (!empty($service->address)) <span class="font-sm icon-start"><i class="fal fa-map-marker-alt"></i>{{ truncateString($service->address, 30) }}</span> @endif @if ($service->zoom_meeting == 1) <span class="font-sm icon-start"><i class="fal fa-video"></i>{{ __('Online') }}</span> @endif <div class="product-bottom justify-content-between mt-10 pt-10 border-top"> <div class="product-price mt-10 mb-1"> <span class="h6 new-price">{{ symbolPrice($service->price) }}</span> <span class="prev-price font-sm">{{ $service->prev_price ? symbolPrice($service->prev_price) : '' }}</span> </div> <a href="javaScript:void(0)" class="bookNowBtn btn btn-sm btn-outline-2 rounded-pill" data-bs-toggle="modal" data-bs-target="#makeBooking" data-id="{{ $service->id }}" title="Book Now" target="_self"> {{ __('Book Now') }}</a> </div> </div> </div><!-- product-default --> </div> @endforeach </div> <div class="cta-btn text-center mt-15"> <a href="{{ route('frontend.services') }}" class="btn btn-lg btn-primary btn-gradient icon-start rounded-pill" title="{{ __('View More') }}" target="_self"><i class="fal fa-arrow-right"></i>{{ __('View More') }}</a> </div> </div> @foreach ($categories as $category) @php $vendorStatus = App\Models\Vendor::where('status', 1)->select('id')->get()->toArray(); $services = App\Models\Services\Services::join( 'service_contents', 'service_contents.service_id', '=', 'services.id', ) ->where(function ($query) use ($vendorStatus) { $query->whereIn('services.vendor_id', $vendorStatus)->orWhere('services.vendor_id', 0); }) ->join('service_categories', 'service_categories.id', '=', 'service_contents.category_id') ->where('service_contents.language_id', $language->id) ->where('service_categories.language_id', $language->id) ->where('service_contents.category_id', $category->id) ->when('services.vendor_id' != '0', function ($query) { return $query ->leftJoin('memberships', 'services.vendor_id', '=', 'memberships.vendor_id') ->where(function ($query) { $query ->where([ ['memberships.status', '=', 1], ['memberships.start_date', '<=', now()->format('Y-m-d')], ['memberships.expire_date', '>=', now()->format('Y-m-d')], ]) ->orWhere('services.vendor_id', '=', 0); }); }) ->select( 'services.*', 'service_contents.name', 'service_contents.address', 'service_contents.slug', ) ->orderBy('services.created_at', 'desc') ->paginate(6); @endphp @if (count($services) > 0) <div class="tab-pane fade" id="tab{{ $category->id }}"> <div class="row"> @foreach ($services as $service) <div class="col-sm-6" data-aos="fade-up"> <div class="row g-0 product-default product-column border radius-md mb-25 align-items-center"> <figure class="product-img col-xl-6"> <a href="{{ route('frontend.service.details', ['slug' => $service->slug, 'id' => $service->id]) }}" title="Image" target="_self" class="lazy-container ratio ratio-2-3"> <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/services/' . $service->service_image) }}" alt="Service"> </a> </figure> <div class="product-details col-xl-6"> <div class="d-flex align-items-center justify-content-between gap-2"> <a href="{{ route('frontend.services', ['category' => $category->slug]) }}"> <span class="tag font-sm">{{ $category->name }}</span> </a> @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkWishList($service->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif <a href="{{ $checkWishList == false ? route('addto.wishlist', $service->id) : route('remove.wishlist', $service->id) }}" class="btn btn-icon border rounded-circle {{ $checkWishList == false ? '' : 'wishlist-active' }}" title="{{ $checkWishList == false ? __('Save to Wishlist') : __('Saved') }}"> <i class="fal fa-heart"></i> </a> </div> <h6 class="product-title mb-0"> <a href="{{ route('frontend.service.details', ['slug' => $service->slug, 'id' => $service->id]) }}" target="_self" title="{{ $service->name }}"> {{ truncateString($service->name, 60) }} </a> </h6> <input type="hidden" value="{{ $service->language_id }}"> <div class="author mb-10 mt-1"> @if ($service->vendor_id != 0) @if ($service->vendor->photo != null) <img class="lazyload blur-up" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/admin/img/vendor-photo/' . $service->vendor->photo) }}" alt="Image"> @else <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/user.png') }}" alt="Vendor"> @endif <span class="font-sm"> {{ __('By') }} <a href="{{ route('frontend.vendor.details', ['username' => $service->vendor->username]) }}" target="_self" title="{{ $service->vendor->username }}">{{ $service->vendor->username }}</a> </span> @else <img class="lazyload blur-up" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/admins/' . $admin->image) }}" alt="Image"> <span class="font-sm"> {{ __('By') }} <a href="" target="_self" title="{{ $admin->username }}">{{ $admin->username }}</a> </span> @endif </div> @if (!empty($service->address)) <span class="font-sm icon-start"><i class="fal fa-map-marker-alt"></i>{{ truncateString($service->address, 30) }}</span> @endif @if ($service->zoom_meeting == 1) <span class="font-sm icon-start"><i class="fal fa-video"></i>{{ __('Online') }}</span> @endif <div class="product-bottom justify-content-between mt-10 pt-10 border-top"> <div class="product-price mt-10 mb-1"> <span class="h6 new-price">{{ symbolPrice($service->price) }}</span> <span class="prev-price font-sm">{{ $service->prev_price ? symbolPrice($service->prev_price) : '' }}</span> </div> <a href="javaScript:void(0)" class="bookNowBtn btn btn-sm btn-outline-2 rounded-pill" data-bs-toggle="modal" data-bs-target="#makeBooking" data-id="{{ $service->id }}" title="Book Now" target="_self"> {{ __('Book Now') }}</a> </div> </div> </div><!-- product-default --> </div> @endforeach </div> <div class="cta-btn text-center mt-15"> <a href="{{ route('frontend.services', ['category' => $category->slug]) }}" class="btn btn-lg btn-primary btn-gradient icon-start rounded-pill" target="_self"><i class="fal fa-arrow-right"></i>{{ __('View More') }}</a> </div> </div> @endif @endforeach </div> @endif </div> </div> </div> </section> @endif <!-- Service-area end --> @if (count($after_latest_service) > 0) @foreach ($after_latest_service as $cusLatestServie) @if (isset($homecusSec[$cusLatestServie->id])) @if ($homecusSec[$cusLatestServie->id] == 1) @php $cusLatestServieContent = App\Models\CustomSectionContent::where('custom_section_id', $cusLatestServie->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusLatestServieContent]) @endif @endif @endforeach @endif <!-- Action banner start --> @if ($secInfo->call_to_action_section_status == 1) <section class="action-banner"> <div class="container"> <div class="wrapper radius-md pt-40 px-60 bg-img bg-cover" data-bg-image="{{ asset('assets/img/' . @$sectionContent->call_to_action_section_image) }}"> <div class="row align-items-center gx-xl-5"> <div class="col-lg-6"> <div class="content-title mb-40" data-aos="fade-up"> <h2 class="title color-white mb-25"> {{ !empty($sectionContent->call_to_action_section_title) ? $sectionContent->call_to_action_section_title : 'Now Get 50% Discount For First Booking ' }} </h2> <p class="color-light"> {!! @$sectionContent->action_section_text !!} </p> @if (!empty($sectionContent->call_to_action_url)) <div class="mt-30"> <a href="{{ @$sectionContent->call_to_action_url }}" class="btn btn-lg btn-primary btn-gradient icon-start rounded-pill"><i class="{{ @$sectionContent->call_to_action_icon }}"></i>{{ @$sectionContent->call_to_action_section_btn }}</a> </div> @endif </div> </div> </div> </div> </div> </section> @endif <!-- Action banner end --> @if (count($after_call_to_action) > 0) @foreach ($after_call_to_action as $cusAction) @if (isset($homecusSec[$cusAction->id])) @if ($homecusSec[$cusAction->id] == 1) @php $cusActionContent = App\Models\CustomSectionContent::where('custom_section_id', $cusAction->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusActionContent]) @endif @endif @endforeach @endif <!-- Shop-area start --> @if ($secInfo->vendor_featured_section_status == 1) <section class="shop-area shop-2 ptb-100"> <div class="container"> <div class="row"> <div class="col-12"> <div class="section-title title-inline mb-50" data-aos="fade-up"> <h2 class="title"> {{ !empty($sectionContent->vendor_section_title) ? $sectionContent->vendor_section_title : 'Our Top Featured Shop' }} </h2> @if ($vendors > 0) <a href="{{ route('frontend.vendors') }}" class="btn btn-lg btn-primary btn-gradient icon-start" title="View All Vendor" target="_self"><i class="fal fa-arrow-right"></i> @if ($vendors > 1) {{ __('View All Vendors') }} @else {{ __('View All Vendor') }} @endif </a> @endif </div> </div> <div class="col-12"> @if ($featuredVendors->count() == 0) <h4 class="text-center">{{ __('NO VENDOR FOUND') . '!' }}</h4> @else <!-- Slider main container --> <div class="swiper product-slider" id="product-slider-1" data-slides-per-view="4" data-swiper-loop="false" data-aos="fade-up"> <!-- Additional required wrapper --> <div class="swiper-wrapper"> <!-- Slides --> @foreach ($featuredVendors as $vendor) <div class="swiper-slide"> <div class="product-default text-center border radius-md p-20 mb-25"> <figure class="product-img mx-auto mb-15"> <a href="{{ route('frontend.vendor.details', ['username' => $vendor->username]) }}" title="Image" target="_self" class="lazy-container rounded-circle ratio ratio-1-1"> @if ($vendor->photo) <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/admin/img/vendor-photo/' . $vendor->photo) }}" alt="Vendor"> @else <img class="lazyload" src="{{ asset('assets/frontend/images/placeholder.png') }}" data-src="{{ asset('assets/img/user.png') }}" alt="Vendor"> @endif </a> </figure> <div class="product-details"> @php $vendorInfo = App\Models\VendorInfo::where([ ['vendor_id', $vendor->vendorId], ['language_id', $language->id], ])->first(); @endphp <h6 class="product-title mb-0"> <a href="{{ route('frontend.vendor.details', ['username' => $vendor->username]) }}" target="_self" title="City Tower Barber Shop"> @if ($vendorInfo->name != null) {{ $vendorInfo->name }} @else {{ $vendor->username }} @endif </a> </h6> @if ($vendorInfo) @if ($vendorInfo->address != null) <span class="font-sm icon-start"><i class="fal fa-map-marker-alt"></i>{{ truncateString($vendorInfo->address, 30) }}</span> @endif @endif <div class="d-flex align-items-center gap-15 mt-10"> <a href="{{ route('frontend.vendor.details', ['username' => $vendor->username]) }}" class="btn btn-sm btn-outline-2 rounded-pill" title="{{ __('Visit Store') }}" target="_self">{{ __('Visit Store') }}</a> @php $total_service = App\Models\Services\Services::where('vendor_id', $vendor->vendorId) ->where('status', 1) ->count(); @endphp <span class="font-sm"> @if ($vendor->total_service > 1) {{ $vendor->total_service }} {{ __('Services Available') }} @elseif($vendor->total_service == 1) {{ $vendor->total_service }} {{ __('Services Available') }} @else {{ __('No Service Available') }} @endif </span> </div> </div> </div><!-- product-default --> </div> @endforeach </div> <!-- If we need pagination --> <div class="swiper-pagination position-static" id="product-slider-1-pagination"></div> </div> @endif </div> </div> </div> </section> @endif @if (count($after_vendor) > 0) @foreach ($after_vendor as $cusVendor) @if (isset($homecusSec[$cusVendor->id])) @if ($homecusSec[$cusVendor->id] == 1) @php $cusVendorContent = App\Models\CustomSectionContent::where('custom_section_id', $cusVendor->id) ->where('language_id', $currentLanguageInfo->id) ->first(); @endphp @include('frontend.home.custom-section', ['data' => $cusVendorContent]) @endif @endif @endforeach @endif <!-- Shop-area end --> @endsection @section('script') <script src="https://js.stripe.com/v3/"></script> <script src="{{ $authorizeUrl }}"></script> <script> let stripe_key = "{{ $stripe_key }}"; let authorize_login_key = "{{ $authorize_login_id }}"; let authorize_public_key = "{{ $authorize_public_key }}"; var complete = "{{ Session::get('complete') }}"; var bookingInfo = {!! json_encode(Session::get('paymentInfo')) !!}; </script> <script src="{{ asset('assets/frontend/js/appointment.js') }}"></script> <script> @if (old('gateway') == 'stripe') $('#stripe-element').removeClass('d-none'); @endif </script> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.63 |
proxy
|
phpinfo
|
Settings