@use('app\Helpers\Helpers') @use('App\Models\Setting') @use('App\Enums\AdvertisementTypeEnum') @use('App\Enums\SymbolPositionEnum') @php $homePage = Helpers::getCurrentHomePage(); $settings = Setting::pluck('values')->first(); $homePageAdvertiseBanners = Helpers::getHomePageAdvertiseBanners(); $advertiseServices = Helpers::getHomePageAdvertiseServices(); @endphp @extends('frontend.layout.master') {{ data_get($data ?? [], 'home_banner', 'default_banner.jpg') }} @section('title', $themeOptions['general']['site_title']) @section('content') @use('App\Enums\ServiceTypeEnum') @use('App\Enums\FrontEnum') @if (isset($homePage['home_banner']) && $homePage['home_banner']['status'])

{{ $homePage['home_banner']['title'] ?? __('static.hero_section_title') }}

{{ $homePage['home_banner']['description'] ?? __('static.hero_section_description') }}

@php $services = Helpers::getServices($homePage['home_banner']['service_ids'] ?? []); @endphp
@if (count($services))
@foreach ($services as $service) @endforeach
@endif
@endif @if (isset($homePage['categories_icon_list']) && $homePage['categories_icon_list']['status'])
{{ $homePage['categories_icon_list']['section_label'] ?? __('frontend::static.category_section.section_label') }}

{{ $homePage['categories_icon_list']['title'] ?? __('frontend::static.category_section.title') }}

{{ $homePage['categories_icon_list']['description'] ?? __('frontend::static.category_section.description') }}

{{ __('frontend::static.home_page.view_all') }}
@php $categories = Helpers::getCategories($homePage['categories_icon_list']['category_ids'] ?? []); @endphp
@foreach ($categories as $key => $category)
@forelse ($category->services?->whereNull('parent_id')?->where('status', true)->where('is_custom_offer', false) as $services) @empty

{{ __('frontend::static.home_page.services_not_found') }}

@endforelse
@endforeach
@endif @if (isset($homePage['service_list_1']) && $homePage['service_list_1']['status'])
{{ $homePage['service_list_1']['section_label'] ?? __('frontend::static.service_list_1.section_label') }}

{{ $homePage['service_list_1']['title'] ?? __('frontend::static.service_list_1.title') }}

{{ $homePage['service_list_1']['description'] ?? __('frontend::static.service_list_1.description') }}

{{ __('frontend::static.home_page.view_all') }}
@php $services = Helpers::getServices($homePage['service_list_1']['service_ids'] ?? [])?->paginate($themeOptions['pagination']['service_per_page']); @endphp @if (count($services ?? []))
@foreach ($services as $service)
@if ($service->discount)
{{ $service->discount }}%
@endif

{{ $service?->title }}

@if ($service->price || $service->service_rate)
@if ($service->price && $service->service_rate) {{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($service->service_rate) }} @else {{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($service->price) }} @endif {{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($service->price) }}
@if ($service?->duration)
{{ $service?->duration }}{{ $service?->duration_unit === 'hours' ? 'h' : 'm' }}
@endif @if ($service?->required_servicemen)
{{ $service?->required_servicemen }}
@endif
@endif
@endforeach
@else

{{ __('frontend::static.home_page.services_not_found') }}

@endif
@forelse($services as $service) @includeIf('frontend.inc.modal', ['service' => $service]) @empty @endforelse @endif @isset($homePage['value_banners']['banners']) @if ($homePage['value_banners']['status'])
{{ $homePage['value_banners']['section_label'] ?? __('frontend::static.value_banners.section_label') }}

{{ $homePage['value_banners']['title'] ?? __('frontend::static.value_banners.title') }}

{{ $homePage['value_banners']['description'] ?? __('frontend::static.value_banners.description') }}

@isset($homePage['value_banners']['banners'])
@forelse ($homePage['value_banners']['banners'] as $banner)
{{ $banner['sale_tag'] }}
{{ $homePage['value_banners']['title'] }}

{{ $banner['title'] }}

{{ $banner['description'] }}

@if ($banner['redirect_type'] == 'service-page') {{ $banner['button_text'] }} @elseif($banner['redirect_type'] == 'service-package-page') {{ $banner['button_text'] }} @elseif($banner['redirect_type'] == 'category-page') {{ $banner['button_text'] }} @elseif($banner['redirect_type'] == 'service') @php $service = Helpers::getServiceById($banner['redirect_id']); @endphp {{ $banner['button_text'] }} @elseif($banner['redirect_type'] == 'package') @php $servicePackage = Helpers::getServicePackageById( $banner['redirect_id'], ); @endphp {{ $banner['button_text'] }} @elseif($banner['redirect_type'] == 'external_url') {{ $banner['button_text'] }} @endif
@empty

{{ __('frontend::static.home_page.banners_not_found') }}

@endforelse
@endisset
@endif @endisset @if (count($advertiseServices))
{{ $homePage['special_offers_section']['section_label'] ?? __('frontend::static.special_offers_section.section_label') }}

{{ $homePage['special_offers_section']['service_section_title'] ?? __('frontend::static.special_offers_section.service_section_title') }}

{{ $homePage['special_offers_section']['service_section_description'] ?? __('frontend::static.special_offers_section.service_section_description') }}

{{ __('frontend::static.home_page.view_all') }}
@foreach ($advertiseServices as $advertisement) @foreach ($advertisement->services as $service)
@if ($service->discount)
{{ $service->discount }}%
@endif

{{ $service?->title }}

@if ($service->price || $service->service_rate)
@if ($service->price && $service->service_rate) {{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($service->service_rate) }} @else {{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($service->price) }} @endif {{ Helpers::getDefaultCurrencySymbol() }}{{ Helpers::covertDefaultExchangeRate($service->price) }}
@if ($service?->duration)
{{ $service?->duration }}{{ $service?->duration_unit === 'hours' ? 'h' : 'm' }}
@endif @if ($service?->required_servicemen)
{{ $service?->required_servicemen }}
@endif
@endif
@endforeach @endforeach
@endif @if (isset($homePage['providers_list']) && $homePage['providers_list']['status'])
{{ $homePage['providers_list']['section_label'] ?? __('frontend::static.providers_list.section_label') }}

{{ $homePage['providers_list']['title'] ?? __('frontend::static.home_page.expert_provider_by_rating') }}

{{ $homePage['providers_list']['description'] ?? __('frontend::static.providers_list.description') }}

{{ __('frontend::static.home_page.view_all') }}
@php $providers = Helpers::getTopProvidersByRatings( $homePage['providers_list']['provider_ids'] ?? [], ); @endphp @forelse ($providers as $provider)
{{ $provider?->name }}

{{ $provider?->name }}

star ({{ $provider?->review_ratings }})
{{ $provider?->primary_address?->state?->name }} - {{ $provider?->primary_address?->country?->name }}
Address:

{{ $provider?->primary_address?->address }},{{ $provider?->primary_address?->postal_code }}

@empty

{{ __('frontend::static.home_page.providers_not_found') }}

@endforelse
@endif @if (isset($homePage['service_packages_list']) && $homePage['service_packages_list']['status'])
{{ $homePage['service_packages_list']['section_label'] ?? __('frontend::static.service_packages_list.section_label') }}

{{ $homePage['service_packages_list']['title'] ?? __('frontend::static.service_packages_list.title') }}

{{ $homePage['service_packages_list']['description'] ?? __('frontend::static.service_packages_list.description') }}

{{ __('frontend::static.home_page.view_all') }}
@php $servicePackages = Helpers::getServicePackagesByIds($homePage['service_packages_list']['service_packages_ids'] ?? []); @endphp @forelse ($servicePackages as $servicePackage) @php $locale = app()->getLocale(); $salePrice = Helpers::getServicePackageSalePrice($servicePackage?->id); $coverMedia = $servicePackage->getMedia('cover_image')->filter(function ($media) use ($locale) { return $media->getCustomProperty('language') === $locale; }); $coverImageUrl = $coverMedia->count() > 0 ? $coverMedia->first()->getUrl() : FrontEnum::getPlaceholderImageUrl(); @endphp @empty

{{ __('frontend::static.home_page.service_package_not_found') }}

@endforelse
@endif @if (isset($homePage['blogs_list']) && $homePage['blogs_list']['status'])
{{ $homePage['blogs_list']['section_label'] ?? __('frontend::static.blogs_list.section_label') }}

{{ $homePage['blogs_list']['title'] ?? __('frontend::static.blogs_list.title') }}

{{ $homePage['blogs_list']['description'] ?? __('frontend::static.blogs_list.description') }}

{{ __('frontend::static.home_page.view_all') }}
@php if (isset($homePage['blogs_list']['blog_ids'])) { $blogs = Helpers::getBlogsByIds($homePage['blogs_list']['blog_ids']); } else { $blogs = []; } @endphp @forelse ($blogs as $blog)
  • {{ $blog?->categories?->first()?->title }}
  • {{ $blog?->created_at }}

{{ $blog?->title }}

{{ $blog?->description }}

Read More
@empty

{{ __('frontend::static.home_page.blog_not_found') }}

@endforelse
@endif @if ( (isset($homePage['service_request']) && $homePage['service_request']['status']) && (isset($homePage['custom_job']) && $homePage['custom_job']['status']))

{{ $homePage['custom_job']['title'] ?? __('frontend::static.custom_job_section_title') }}

{{ $homePage['custom_job']['description'] ?? __('frontend::static.custom_job_section_description') }}

@auth @endauth @guest {{ $homePage['custom_job']['button_text'] ?? '+ Post New Job Request' }} @endguest
@endif @if (isset($homePage['become_a_provider']) && $homePage['become_a_provider']['status'])

{{ $homePage['become_a_provider']['title'] ?? __('fronted::ststic.become_provider_section_title') }}

{{ $homePage['become_a_provider']['description'] ?? __('fronted::ststic.become_provider_section_description') }}

{{ $homePage['become_a_provider']['button_text'] }}
@endif @if (isset($homePage['testimonial']) && $homePage['testimonial']['status'])
{{ $homePage['testimonial']['section_label'] ?? __('frontend::static.testimonial.section_label') }}

{{ $homePage['testimonial']['title'] ?? __('frontend::static.testimonial.section_label') }}

{{ $homePage['testimonial']['description'] ?? __('frontend::static.testimonial.description') }}

@php $testimonials = Helpers::getTestimonials(); @endphp @forelse ($testimonials as $testimonial)

{{ $testimonial?->description }}

feature

{{ $testimonial?->name }}

  • star
  • star
  • star
  • star
  • star
(4.8)
@empty

{{ __('frontend::static.home_page.testimonials_not_found') }}

@endforelse
@endif @if (isset($homePage['news_letter']) && $homePage['news_letter']['status'])
@endif @endsection @push('js') @endpush