@extends('layouts.back-end.app') @section('title', translate('product_Preview')) @section('content')

{{ translate('product_details') }}

@if ($productActive && $isActive) {{ translate('view_live') }} @endif @if ($product->digital_file_ready_full_url['path']) {{ translate('download') }} @endif
@php($languages = getWebConfig(name:'pnc_language')) @php($defaultLanguage = 'en') @php($defaultLanguage = $languages[0])
@if($product['added_by'] == 'seller' && ($product['request_status'] == 0 || $product['request_status'] == 1))
@if($product['request_status'] == 0) @endif
@endif @if($product['added_by'] == 'seller' && ($product['request_status'] == 2))
{{translate('status').' : '}} {{translate('rejected')}}
@endif
@if ($product->product_type == 'physical' && !empty($product->color_image) && count($product->color_images_full_url)>0) @foreach ($product->color_images_full_url as $colorImageKey => $photo) @endforeach @else @foreach ($product->images_full_url as $imageKey => $photo) @endforeach @endif
{{ count($product->orderDetails) }} {{ translate('orders') }}
{{ count($product->rating)>0 ? number_format($product->rating[0]->average, 2, '.', ' '):0 }}
{{ translate('rating') }}
    @php($total = $product->reviews->count())
  • @php($five = getRatingCount($product['id'], 5)) {{ translate('5') }} {{ translate('star') }}
    {{ $five }}
  • @php($four=getRatingCount($product['id'],4)) {{ translate('4') }} {{ translate('star') }}
    {{ $four }}
  • @php($three=getRatingCount($product['id'],3)) {{ translate('3') }} {{ translate('star') }}
    {{ $three }}
  • @php($two=getRatingCount($product['id'],2)) {{ translate('2') }} {{ translate('star') }}
    {{ $two }}
  • @php($one=getRatingCount($product['id'],1)) {{ translate('1') }} {{ translate('star') }}
    {{ $one }}
{{ $product->reviews->whereNotNull('comment')->count() }} {{ translate('reviews') }}
@foreach($languages as $language)