@forelse($products ?? [] as $product) @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 @if($product->sale_status == 1)
@if($product->offer)

{{ __('Discount') }} @if($product->offer?->discount_type == 1) {{ $product->offer?->discount }} @else {{ $product->offer?->discount }} % @endif

@endif

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

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