@extends('inner_layout') @section('title') {{ $product->translate?->seo_title }} @endsection @section('frontend_content')
@foreach ($product?->galleries as $gallery)
@endforeach
@foreach ($product?->galleries as $gallery)
@endforeach

{{ $product?->category?->name }}

{{ $product?->name }}

@php $rating = $product?->avg_rating ?? 0; $fullStars = floor($rating); $halfStar = $rating - $fullStars >= 0.5 ? 1 : 0; $emptyStars = 5 - $fullStars - $halfStar; @endphp
@for ($i = 0; $i < $fullStars; $i++) {{ get_svg('innerpage.star_full') }} @endfor @if ($halfStar) {{ get_svg('innerpage.half_star') }} @endif @for ($i = 0; $i < $emptyStars; $i++) {{ get_svg('innerpage.empty_star') }} @endfor

({{ $product?->review_count }} Review)

@php $offerprice=$product->offer_price; $price=$product->price; $discount=($offerprice*$price)/100; $discount=$price - $discount; @endphp

@if($product->offer_price) {{ currency($product->price) }} @endif {{ currency($product->offer_price ? $discount : $product->price) }}

{{ $product?->translate?->short_description }}

{{ __('MKS :') }} {{ $product?->sku == null ? 'J-8521' : $product?->sku }}

{{ __('Category :') }} {{ $product?->category?->name }}

{{ __('Tags :') }} @php $tags = collect(json_decode($product?->tags)) ->pluck('value') ->implode(', '); @endphp {{ $tags }}

{!! clean($product?->translate?->description) !!}
@foreach ($product->reviews as $review)
@if ($review?->user && $review?->user?->image) Cameron Williamson @else Cameron Williamson @endif
@if ($review?->user && $review?->user?->name) {{ $review?->user?->name }} @else {{ __('Anonymous') }} @endif
{{ $review?->reviews }}
@for ($i = 1; $i <= $review?->rating; $i++) {{ get_svg('innerpage.star') }} @endfor
{{ $review?->created_at?->format('M d, Y') }}
@endforeach
@if (auth()->user())

{{ __('Write Your Review') }}

@for ($i = 1; $i <= 5; $i++) {{ get_svg('innerpage.rattingstar') }} @endfor
({{ __('0.0') }})
@csrf
@endif
@if ($relatedProducts->isNotEmpty()) @endif
@endsection @push('script_section') @endpush