@extends('layouts.app') @section('header-title', __('Product Details')) @section('content')

{{ __('Product Details') }}

@foreach ($product->thumbnails() as $photo) product @endforeach
{{ $product->orders->count() }} {{ __('Orders') }}
{{ number_format($product->reviews->avg('rating'), 1) }}
{{ number_format($product->reviews->count(), 1) }} {{ __('Reviews') }}
{{ __('status') }}: @if ($product->is_approve) {{ __('Approved') }} @else {{ __('Pending') }} @endif

{{ $product->name }}

{{ __('Short Description') }}

{{ $product->short_description }}

@php $categories = $product->categories?->pluck('name')->join(', '); $colors = $product->colors?->pluck('name')->join(', '); $sizes = $product->sizes?->pluck('name')->join(', '); @endphp
{{ __('General Information') }}
{{ __('Brand') }} : {{ __($product->brand?->name) }}
{{ __('Categories') }} : {{ $categories }}
{{ __('Colors') }} : {{ $colors }}
{{ __('Sizes') }} : {{ $sizes }}
{{ __('Price Information') }}
{{ __('Price') }} : {{ showCurrency($product->price) }}
{{ __('Discount Price') }} : {{ showCurrency($product->discount_price) }}
{{ __('Current Stock Quantity') }}

{{ $product->quantity }}

@if ($product->video)
{{ __('Product Video') }}
@if ($product->video->type == 'file') @elseif ($product->video->type != 'file')
{!! $product->video->url !!}
@endif
@endif
{{ __('Description') }}

{!! $product->description !!}

@endsection @push('css') @endpush