@extends('layouts.app') @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 }}

{{__('General Information')}}
{{__('Brand')}} :{{ $product->brand?->name }}
{{__('Categories')}} :@foreach ($product->categories as $category) {{ $category->name }}@if (!$loop->last), @endif @endforeach
{{__('Colors')}} :@foreach ($product->colors as $color) {{ $color->name }}@if (!$loop->last), @endif @endforeach
{{__('Sizes')}} :@foreach ($product->sizes as $size) {{ $size->name }}@if (!$loop->last), @endif @endforeach
{{__('Price Information')}}
Price : {{ showCurrency($product->price) }}
{{__('Discount Price')}} : {{ showCurrency($product->discount_price) }}
{{__('Current Stock Quantity')}}

{{ $product->quantity }}

{{__('Description')}}

{!! $product->description !!}

@endsection