@extends('layouts.front-end.app') @section('title',$product['name']) @push('css_or_js') @if($product->added_by=='seller') @elseif($product->added_by=='admin') @endif @if($product['meta_image']!=null) meta_image}}"/> meta_image}}"/> @else thumbnail}}"/> thumbnail}}"/> @endif @if($product['meta_title']!=null) @else @endif @if($product['meta_description']!=null) @else @endif @endpush @section('content')
{{$product->name}}
{{$overallRating[0]}}
@for($inc=0;$inc<5;$inc++) @if($inc<$overallRating[0]) @else @endif @endfor
{{$overallRating[1]}} {{\App\CPU\translate('Reviews')}} {{$countOrder}} {{\App\CPU\translate('orders')}} {{$countWishlist}} {{\App\CPU\translate('wish_listed')}}
@if($product->discount > 0) {{\App\CPU\Helpers::currency_converter($product->unit_price)}} @endif {{\App\CPU\Helpers::get_price_range($product) }} ({{\App\CPU\translate('tax')}} : )
@csrf
@if (count(json_decode($product->colors)) > 0)
{{\App\CPU\translate('color')}}:
    @foreach (json_decode($product->colors) as $key => $color)
  • @endforeach
@endif @php $qty = 0; if(!empty($product->variation)){ foreach (json_decode($product->variation) as $key => $variation) { $qty += $variation->qty; } } @endphp
@foreach (json_decode($product->choice_options) as $key => $choice)
{{ $choice->title }} :
    @foreach ($choice->options as $key => $option)
  • @endforeach
@endforeach
{{\App\CPU\translate('Quantity')}}:
{{\App\CPU\translate('total_price')}} :
 
@if(($product['product_type'] == 'physical') && ($product['current_stock']<=0))
{{\App\CPU\translate('out_of_stock')}}
@endif
{{\App\CPU\translate('buy_now')}} @if(($product->added_by == 'seller' && ($seller_temporary_close || (isset($product->seller->shop) && $product->seller->shop->vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date))) || ($product->added_by == 'admin' && ($inhouse_temporary_close || ($inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date)))) @else @endif @if(($product->added_by == 'seller' && ($seller_temporary_close || (isset($product->seller->shop) && $product->seller->shop->vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date))) || ($product->added_by == 'admin' && ($inhouse_temporary_close || ($inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date)))) @endif
@if($product->video_url!=null)
@endif
{!! $product['details'] !!}

{{$overallRating[0]}}

@if (round($overallRating[0])==5) @for ($i = 0; $i < 5; $i++) @endfor @endif @if (round($overallRating[0])==4) @for ($i = 0; $i < 4; $i++) @endfor @endif @if (round($overallRating[0])==3) @for ($i = 0; $i < 3; $i++) @endfor @for ($j = 0; $j < 2; $j++) @endfor @endif @if (round($overallRating[0])==2) @for ($i = 0; $i < 2; $i++) @endfor @for ($j = 0; $j < 3; $j++) @endfor @endif @if (round($overallRating[0])==1) @for ($i = 0; $i < 4; $i++) @endfor @endif @if (round($overallRating[0])==0) @for ($i = 0; $i < 5; $i++) @endfor @endif
{{$reviews_of_product->total()}} {{\App\CPU\translate('ratings')}}
{{\App\CPU\translate('Excellent')}}
{{$rating[0]}}
{{\App\CPU\translate('Good')}}
{{$rating[1]}}
{{\App\CPU\translate('Average')}}
{{$rating[2]}}
{{\App\CPU\translate('Below Average')}}
{{$rating[3]}}
{{\App\CPU\translate('Poor')}}
{{$rating[4]}}
{{\App\CPU\translate('Product Review')}}
{{-- @foreach($reviews_of_product as $productReview) --}} {{-- @include('web-views.partials.product-reviews',['productRevie'=>$productRevie]) --}} {{-- @endforeach --}} @if(count($product->reviews)==0)
{{\App\CPU\translate('product_review_not_available')}}
@endif
@if(count($product->reviews) > 2)
@endif
{{\App\CPU\translate('Safe Payment')}}
{{ \App\CPU\translate('7 Days Return Policy')}}
{{ \App\CPU\translate('100% Authentic Products')}}
{{--seller section--}} @if($product->added_by=='seller') @if(isset($product->seller->shop))
{{$product->seller->shop->name}}
{{\App\CPU\translate('Seller_info')}}
@if (auth('customer')->id() == '')
{{\App\CPU\translate('chat')}}
@else
{{\App\CPU\translate('chat')}}
@endif @if(($product->added_by == 'seller' && ($seller_temporary_close || ($product->seller->shop->vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date)))) i @endif
{{$total_reviews}}
{{\App\CPU\translate('reviews')}}
{{$products_for_review->count()}}
{{\App\CPU\translate('products')}}
@endif @else
value}}" onerror="this.src='{{asset('public/assets/front-end/img/image-place-holder.png')}}'" alt="">
{{$web_config['name']->value}}
@if($product->added_by == 'admin' && ($inhouse_temporary_close || ($inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date)))
i
@endif
{{$total_reviews}}
{{\App\CPU\translate('reviews')}}
{{$products_for_review->count()}}
{{\App\CPU\translate('products')}}
@endif
{{ \App\CPU\translate('More From The Store')}}
@foreach($more_product_from_seller as $item) @include('web-views.partials.seller-products-product-details',['product'=>$item,'decimal_point_settings'=>$decimal_point_settings]) @endforeach
{{ \App\CPU\translate('similar_products')}}
@php($category=json_decode($product['category_ids'])) @if($category) {{ \App\CPU\translate('view_all')}} @endif
@if (count($relatedProducts)>0) @foreach($relatedProducts as $key => $relatedProduct)
@include('web-views.partials._single-product',['product'=>$relatedProduct,'decimal_point_settings'=>$decimal_point_settings])
@endforeach @else
{{\App\CPU\translate('similar')}} {{\App\CPU\translate('product_not_available')}}
@endif
@endsection @push('script') {{-- Messaging with shop seller --}} @endpush