@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 Brand Size Load Rating Pattern Price W. Price In Stock Coming Stock Stock Level Status Actions
{{ $products->firstItem() + $key }}
@if ($firstImage) {{ $product->name }} @else @endif
{{ $product->name }}
ID: {{ $product->id }}
{{ $product->brand_name ?? '-' }} {{ $product->size ?? '-' }} {{ $product->load_rating ?? '-' }} {{ $product->pattern ?? '-' }} @if ($product->sale_price && $product->sale_price < $product->price) {{ format_price($product->price) }}
{{ format_price($product->sale_price) }} @else {{ format_price($product->price) }} @endif
{{ $product->wholesale_price ? format_price($product->wholesale_price) : '-' }} @if ($product->with_storehouse_management) {{ intval($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 {!! (new \Botble\Ecommerce\Enums\ProductStatusEnum()) ->make($product->status) ->toHtml() !!}
@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
Brand {{ $product->brand_name ?? '-' }}
Size {{ $product->size ?? '-' }}
Load Rating {{ $product->load_rating ?? '-' }}
Pattern {{ $product->pattern ?? '-' }}
W. Price {{ $product->wholesale_price ? format_price($product->wholesale_price) : '-' }}
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 {!! (new \Botble\Ecommerce\Enums\ProductStatusEnum()) ->make($product->status) ->toHtml() !!}
@endforeach
@endif