@if ($products->isEmpty())
No products found

Try adjusting your search or filters

@else
@foreach ($products->items() as $key => $product) @php // Extract the first image from the JSON array $images = json_decode($product->images); $firstImage = null; if ($images && is_array($images) && count($images) > 0) { $firstImage = $images[0]; } @endphp @endforeach
# Product SKU Price Current Stock Pending Stock Stock Level Status Actions
{{ $products->firstItem() + $key }}
@if ($firstImage) {{ $product->name }} @else @endif
{{ $product->name }}
ID: {{ $product->id }}
{{ $product->sku ?? '-' }} @if ($product->sale_price && $product->sale_price < $product->price) {{ format_price($product->price) }} {{ format_price($product->sale_price) }} @else {{ format_price($product->price) }} @endif @if ($product->with_storehouse_management) {{ $product->current_stock }} @else Not Managed @endif @if ($product->with_storehouse_management) {{ $product->pending_qty ?? 0 }} @else Not Managed @endif @if ($product->stock_level == 'Out of Stock') Out of Stock @elseif ($product->stock_level == 'Coming Soon') Coming Soon @else In Stock @endif @if ($product->status == 'published') Published @else {{ ucfirst($product->status) }} @endif
@foreach ($products->items() as $key => $product) @php // Extract the first image from the JSON array $images = json_decode($product->images); $firstImage = null; if ($images && is_array($images) && count($images) > 0) { $firstImage = $images[0]; } @endphp
@if ($firstImage) {{ $product->name }} @else @endif
{{ $product->name }}
ID: {{ $product->id }}
@if ($product->stock_level == 'Out of Stock') Out of Stock @elseif ($product->stock_level == 'Coming Soon') Coming Soon @else In Stock @endif
SKU {{ $product->sku ?? '-' }}
Price @if ($product->sale_price && $product->sale_price < $product->price) {{ format_price($product->price) }} {{ format_price($product->sale_price) }} @else {{ format_price($product->price) }} @endif
Current Stock @if ($product->with_storehouse_management) {{ $product->current_stock }} @else Not Managed @endif
Pending Stock @if ($product->with_storehouse_management) {{ $product->pending_qty ?? 0 }} @else Not Managed @endif
Status @if ($product->status == 'published') Published @else {{ ucfirst($product->status) }} @endif
@endforeach
@endif