@php $avg_ratting = round($product->reviews->avg('ratting'), 1); $total_review = count($product->reviews); @endphp
@foreach($product->get_galleryImages as $image) @endforeach

{{$product->title}}

{{\App\Http\Controllers\HelperController::ratting($avg_ratting)}} {{$total_review}} reviews
@if($product->get_brand)

Brand: {{$product->get_brand->name}} | @endif Availability: In Stock

@php $discount = \App\Http\Controllers\OfferController::discount($product->id, Session::get('offerId')); @endphp @if($discount) {{Config::get('siteSetting.currency_symble')}}{{$discount['discount_price'] }} {{Config::get('siteSetting.currency_symble')}}{{$product->selling_price}} -@if($discount['discount_type'] != '%'){{$discount['discount_type']}}@endif{{$discount['discount']}}@if($discount['discount_type'] == '%'){{$discount['discount_type']}}@endif OFF @else {{Config::get('siteSetting.currency_symble')}}{{$product->selling_price}} @endif
@foreach ($product->get_variations as $variation) @if($variation->in_display==2)
{{$variation->attribute_name}}:
@else
  • {{$variation->attribute_name}}:
  • @foreach($variation->get_variationDetails as $variationDetail) @endforeach
@endif @endforeach

OverView

{{Str::limit($product->summery, 150)}}
@if($product->product_type == null || $product->product_type == 'add-to-cart' || $product->product_type == 'download' || $product->product_type != 'mystery-box')
@endif
@if($product->product_type == null && $product->product_type == 'add-to-cart' && $product->product_type == 'download' || $product->product_type != 'mystery-box') @endif