@extends('site.layout.layout') @if($product) @if($product->sale_status != 1) @section('title',__('Used Product Details')) @section('content')

{{ __('Brand') }} {{ $product->subCategory?->getTranslation('title',app()->getLocale()) }}

{{ $product->getTranslation('title',app()->getLocale()) }}

{{ __('Reviews') }} ( {{ number_format($product->reviews?->avg('rating'),2) ?? 0 }} )

{{ $product->product_net_price }}

{{ __('Seller') }}
@php $logoUrl = $product->store?->logo && Storage::disk('public')->exists($product->store?->logo) ? Storage::disk('public')->url($product->store?->logo) : asset('site/img/stores/default.png'); @endphp
{{ $product->store?->getTranslation('title',app()->getLocale()) }}

( {{ number_format($product->store?->reviews?->avg('rating'),2) ?? 0 }} )

{{ __('Fast shipping') }}

{{ __('Fast and easy delivery ensures your order arrives as quickly as possible.') }}

{{ __('Secure payment') }}

{{ __('Reliable and easy payment process') }}

{{ __('Free returns') }}

{{ __('Free return service') }}

{{ $product->getTranslation('description',app()->getLocale()) }}

@if($product->features)
@foreach(json_decode($product->features) ?? [] as $key => $feature)

{{ $key }} : {{ $feature }}

@endforeach @endif
@forelse($product->reviews ?? [] as $review)
@php $userLogo = $review->user?->image && Storage::disk('public')->exists($review->user?->image) ? Storage::disk('public')->url($review->user?->image) : asset('admin/authentication.png'); @endphp
{{ $review->comment }}

( {{ $review->rating }} )

@empty

{{ __('There are no reviews to display.') }}

@endforelse
@endsection @push('scripts') @endpush @else @section('title',__('Product Details')) @section('content')

{{ __('Brand') }} {{ $product->subCategory?->getTranslation('title',app()->getLocale()) }}

{{ $product->getTranslation('title',app()->getLocale()) }}

{{ __('Reviews') }} ( {{ number_format($product->reviews?->avg('rating'),2) ?? 0 }} )

{{ $product->product_net_price }}

{{ __('Fast shipping') }}

{{ __('Fast and easy delivery ensures your order arrives as quickly as possible.') }}

{{ __('Secure payment') }}

{{ __('Reliable and easy payment process') }}

{{ __('Free returns') }}

{{ __('Free return service') }}

@php $logoUrl = $product->store?->logo && Storage::disk('public')->exists($product->store?->logo) ? Storage::disk('public')->url($product->store?->logo) : asset('site/img/stores/default.png'); @endphp
{{ $product->store?->getTranslation('title',app()->getLocale()) }}

( {{ number_format($product->store?->reviews?->avg('rating'),2) ?? 0 }} )

{{ $product->getTranslation('description',app()->getLocale()) }}

@if($product->features)
@foreach(json_decode($product->features) ?? [] as $key => $feature)

{{ $key }} : {{ $feature }}

@endforeach @else

{{ __('There are no features to display.') }}

@endif
@forelse($product->reviews ?? [] as $review)
@php $userLogo = $review->user?->image && Storage::disk('public')->exists($review->user?->image) ? Storage::disk('public')->url($review->user?->image) : asset('admin/authentication.png'); @endphp
{{ $review->comment }}

( {{ $review->rating }} )

@empty

{{ __('There are no reviews to display.') }}

@endforelse
@endsection @push('scripts') @endpush @endif @else @section('content')

{{ __('There are no products to display.') }}

@endsection @endif