@use('App\Modules\Sellers\Http\Controllers\Seller\ProductController') Upload spreadsheet Add product
@foreach (ProductController::TABS as $key => $label) @if ($key === 'all' || ($counts[$key] ?? 0) > 0 || $tab === $key) $tab === $key, 'btn-light' => $tab !== $key])>{{ $label }} {{ $counts[$key] ?? 0 }} @endif @endforeach
@if ($products->isEmpty()) @if ($counts['all'] === 0) Add product @else @endif @else
@foreach ($products as $p) @php($r = $ratings->get($p->slug)) @endforeach
ProductStatusPriceStockRatingActions
@if ($p->image()) @else @endif
{{ $p->name }}
{{ $categories[$p->category]['name'] ?? $p->category }}@if ($p->sku) · {{ $p->sku }}@endif
{{ $p->statusLabel() }} @if ($p->status === 'rejected' && $p->admin_note)
{{ Str::limit($p->admin_note, 60) }}
@endif
{{ inr($p->price) }} @if ($p->discount > 0)
{{ inr($p->mrp) }} {{ $p->discount }}% off
@endif
$p->stock <= 0, 'badge-soft-warning' => $p->isLowStock(), 'badge-soft-success' => $p->stock > 0 && ! $p->isLowStock()])>{{ $p->stock <= 0 ? 'Sold out' : $p->stock }} {{ $r ? round($r->avg, 1).' ★ ('.$r->n.')' : '–' }} @if (! empty($p->option_names)) {{ $p->variants_count }} options @else @endif
@if ($products->hasPages())@endif @endif