@extends('site.layout.layout') @if($product) @section('title',__('Used Product Details')) @section('content')

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

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

{{ $product->product_net_price }}

@php $statusMap = [ 0 => __('Not Active'), 1 => __('Active'), 2 => __('Pending'), 3 => __('Shipping in Progress'), 4 => __('Sold'), ]; $greenStatuses = [1, 3]; $statusValue = $product->status ?? 0; $statusText = $statusMap[$statusValue] ?? __('Unknown'); $statusClass = in_array($statusValue, $greenStatuses) ? 'green' : 'orange'; @endphp

{{ $statusText }}

{{ __('Product details') }}
{{ $product->getTranslation('description',app()->getLocale()) }}
@endsection @push('scripts') @endpush @else @section('content')

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

@endsection @endif