@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') }}: {{ __('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