@extends('landing-page.layouts.default') @section('content')
@if ($sectionData && isset($sectionData['section_1']) && $sectionData['section_1']['section_1'] == 1)

{{ $sectionData['section_1']['title']}}

{{ $sectionData['section_1']['description'] ?? null }}

@endif
@foreach($sectionData['section_1']['provider_id'] as $providerId) @php $user = App\Models\User::with('getServiceRating')->where('user_type', 'provider')->where('id',$providerId)->where('status',1)->first(); $providers_service_rating = (isset($user->getServiceRating) && count($user->getServiceRating) > 0 ) ? (float) number_format(max($user->getServiceRating->avg('rating'),0), 2) : 0; @endphp @if($user)
provider-image
{{ $user->display_name ?? null }}
({{ round($providers_service_rating,1) }})
@endif @endforeach
@if ($sectionData && isset($sectionData['section_2']) && $sectionData['section_2']['section_2'] == 1)

{{ $sectionData['section_2']['title'] }}

{{__('messages.view_all')}}
@endif
@if ($sectionData && isset($sectionData['section_3']) && $sectionData['section_3']['section_3'] == 1)

{{ $sectionData['section_3']['title'] }}

{{__('messages.view_all')}}
@endif @if ($sectionData && isset($sectionData['section_4']) && $sectionData['section_4']['section_4'] == 1)

{{ $sectionData['section_4']['title'] }}

{{__('messages.view_all')}}
@endif
@if($auth_user_id) @if ($sectionData && isset($sectionData['section_8']) && $sectionData['section_8']['section_8'] == 1) @php $recentlyViewed = session()->get('recently_viewed:' . $auth_user_id, []); session(['recently_viewed:' . $auth_user_id => $recentlyViewed]); @endphp @if (!empty($recentlyViewed))

{{ $sectionData['title'] }}

{{ $sectionData['section_8']['description'] ?? null }}

@endif @endif @endif @if ($sectionData && isset($sectionData['section_5']) && $sectionData['section_5']['section_5'] == 1)
@php $images = Spatie\MediaLibrary\MediaCollections\Models\Media::where('collection_name', 'section5_attachment')->get(); @endphp @if(isset($images[0])) service @else service @endif @if(isset($images[1])) service @else service @endif

{{ $sectionData['section_5']['title'] }}

{{ $sectionData['section_5']['description'] ?? null}}

@if(isset($images[2])) service @else service @endif @if(isset($images[3])) service @else service @endif @if(isset($images[4])) service @else service @endif
@endif @if ($sectionData && isset($sectionData['section_9']) && $sectionData['section_9']['section_9'] == 1)

{{ $sectionData['section_9']['title'] }}

{{-- {{>components/widgets/filter-rating rating="4"}} --}}
@if (isset($sectionData['section_9']['overall_rating']) && $sectionData['section_9']['overall_rating'] == 'on')
{{ round($totalRating,1) }}
{{__('landingpage.overall_rating')}}
@endif
{{ $sectionData['section_9']['description'] ?? null }}
@endif @if ($sectionData && isset($sectionData['section_6']) && $sectionData['section_6']['section_6'] == 1)
pattern

{{ $sectionData['section_6']['title'] }}

{{ $sectionData['section_6']['description'] ?? null }}

@php $mediaGooglePay = Spatie\MediaLibrary\MediaCollections\Models\Media::where('collection_name', 'google_play')->first(); $mediaAppStore = Spatie\MediaLibrary\MediaCollections\Models\Media::where('collection_name','app_store')->first(); $mediaMainImage = Spatie\MediaLibrary\MediaCollections\Models\Media::where('collection_name','main_image')->first(); $sitesetup = App\Models\Setting::where('type','site-setup')->where('key', 'site-setup')->first(); $appDownload = $sitesetup ? json_decode($sitesetup->value) : null; $playStoreUrl = $appDownload && $appDownload->playstore_url ? $appDownload->playstore_url : 'https://play.google.com/'; $appStoreUrl = $appDownload && $appDownload->appstore_url ? $appDownload->appstore_url : 'https://apps.apple.com/'; @endphp @if($mediaGooglePay) googleplay @else googleplay @endif @if($mediaAppStore) appstore @else appstore @endif
@if($mediaMainImage) phone @else phone @endif
@endif @if ($sectionData && isset($sectionData['section_7']) && $sectionData['section_7']['section_7'] == 1)

{{ $sectionData['section_7']['title'] }}

{{ $sectionData['section_7']['description'] ?? null }}

@php $mediaVimage = Spatie\MediaLibrary\MediaCollections\Models\Media::where('collection_name', 'vimage')->first(); @endphp
@if($mediaVimage) video-popup @else video-popup @endif @include('landing-page.components.widgets.video-popup', ['videoLinkUrl' => $sectionData['section_7']['url']])
@if(isset($sectionData['section_7']['subtitle']) && isset($sectionData['section_7']['subdescription'])) @for($i = 0; $i < min(count($sectionData['section_7']['subtitle']), count($sectionData['section_7']['subdescription'])); $i++)
@include('landing-page.components.widgets.icon-box', [ 'iconboxNumber' => $i + 1, 'iconboxTitle' => $sectionData['section_7']['subtitle'][$i], 'iconboxDescription' => $sectionData['section_7']['subdescription'][$i] ])
@endfor @endif
@endif @endsection @section('bottom_script') @endsection