@extends('frontEnd.layouts.master') @section('title', $details->name) @push('seo') @endpush @push('css') @endpush @section('content')
@if($details->old_price)

@php $discount=(((($details->old_price)-($details->new_price))*100) / ($details->old_price)) @endphp {{ number_format($discount, 0) }}% ছাড়

@endif

{{ $details->name }}

@if ($details->old_price) ৳{{ $details->old_price }} @endif ৳{{ $details->new_price }}

@php $averageRating = $reviews->avg('ratting'); $filledStars = floor($averageRating); $emptyStars = 5 - $filledStars; @endphp @if ($averageRating >= 0 && $averageRating <= 5) @for ($i = 1; $i <= $filledStars; $i++) @endfor @if ($averageRating == $filledStars) {{-- If averageRating is an integer, don't display half star --}} @else @endif @for ($i = 1; $i <= $emptyStars; $i++) @endfor {{ number_format($averageRating, 2) }}/5 @else Invalid rating range @endif See Reviews

প্রোডাক্ট কোড : {{ $details->product_code }}

@csrf @if ($productcolors->count() > 0)

Color -

@foreach ($productcolors as $procolor)
@endforeach
@endif @if ($productsizes->count() > 0)

Size -

@foreach ($productsizes as $prosize)
@endforeach
@endif @if ($details->pro_unit)
@endif

Brand : {{ $details->brand ? $details->brand->name : 'Own / Local' }}

- +
@foreach ($shippingcharge as $key => $value) {{ $value->name }}
@endforeach

বিস্তারিত

{!! $details->description !!}

Reviews ({{ $reviews->count() }})

Get specific details about this product from customers who own it.

@if ($reviews->count() > 0)
@foreach ($reviews as $key => $review)

{{ $review->name }}

{{ $review->created_at->format('d-m-Y') }}

{!! str_repeat('', $review->ratting) !!}

{{ $review->review }}

@endforeach
@else

This product has no reviews yet. Be the first one to write a review.

@endif

ভিডিও

@endsection @push('script') @endpush