@extends('front') @section('content')

{{$order_product_count}}+ {{ __('Bookings') }}

{{ optional(App\Models\UserDetail::select('city', 'state', 'country')->where('user_id', $products->user_id)->first())->showfulladdress() ?? '' }}

{{ $ratings['avg_rating'] ?? 0.0 }} ({{ $ratings['total_count'] }} {{ __('reviews') }})

{{ __('share_now') }}

{{$products->views}} {{ __('Views') }}

{!! $products->source_description !!}

{{ __('Read More') }}
@if (count($includedServices) > 0)

@foreach($includedServices as $service)

{{ $service }}

@endforeach
@endif

@if ($videolink != "") @php preg_match('/(?:youtu\.be\/|v=)([^&?]+)/', $videolink, $matches); $videoId = $matches[1] ?? null; $thumbnail = $videoId ? "https://img.youtube.com/vi/$videoId/maxresdefault.jpg" : null; @endphp

@endif

{{ __('Reviews') }} ({{ $ratings['total_count'] }})

{{ __('Customer Reviews & Ratings') }}
@for ($i = 1; $i <= 5; $i++) @if ($i <=floor($ratings['avg_rating'])) @elseif ($i == ceil($ratings['avg_rating']) && $ratings['avg_rating'] > floor($ratings['avg_rating'])) @else @endif @endfor

({{ $ratings['avg_rating'] ?? '0.0' }} {{ __('out of') }} 5.0)

{{ __('basedon') }} {{ $ratings['total_count'] }} {{ __('Reviews') }}

@if ($ratings['star_rating']) @foreach (range(5, 1) as $star) @php $starCount = $ratings['star_rating']['star' . $star] ?? 0; $percentage = ($ratings['total_count'] > 0) ? ($starCount / $ratings['total_count']) * 100 : 0; @endphp

{{ $star }} {{ __('Star Ratings') }}

{{ $starCount }}

@endforeach @endif

{{$currecy_details->symbol}}{{ $products_details1->source_Values }} / {{ formatServicePriceType($products_details1->source_key ?? '', app()->getLocale()) }}

@if (Auth::check())