@extends('master', ['title' => __('dashboard.show_product')]) @section('content')

{{ __('dashboard.product_name') }}: {{ $product->getTranslation('name', app()->getLocale()) }}

{{ $product->is_active ? __('dashboard.active') : __('dashboard.inactive') }}
@if($product->is_best_value) @endif
{{ __('dashboard.price') }} {{ $product->price }}
{{ __('dashboard.discount_price') }} {{ $product->selling_price }}
{{ __('dashboard.best_value') }} {{ $product->discount_price }} ({{ $product->units }} {{ __('dashboard.units') }})
{{ __('dashboard.stock') }} {{ $product->stock }}
{{ __('dashboard.category') }} {{ $product->category?->getTranslation('name', app()->getLocale()) }}
{{ __('dashboard.brand') }} {{ $product->brand?->getTranslation('name', app()->getLocale()) }}
{{ __('dashboard.package_weight') }} {{ $product->package_weight }} {{ __('dashboard.' . $product->weight_unit) }}
{{ __('dashboard.is_best_seller') }} @if($product->is_best_seller) {{ __('dashboard.yes') }} @else {{ __('dashboard.no') }} @endif
@if($product->nutritional_info) @php $nutrition = json_decode($product->nutritional_info, true) @endphp @if(!empty($nutrition))
{{ __('dashboard.nutritional_info') }}
@foreach($nutrition as $key => $value)
{{ str_replace('_', ' ', $key) }} {{ $value }}
@endforeach
@endif @endif
@endsection @push('js') @endpush