Products @can('products.view') @endcan @can('products.update') Import price list @endcan @can('products.create') @endcan @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if (count($selected) > 0)
{{ count($selected) }} {{ Str::plural('product', count($selected)) }} selected
@can('products.update') @endcan @can('products.delete') @endcan
@endif @php $filtersActive = $nameFilter || $skuFilter || $mrpFilter || $sellingPriceFilter || $categoryFilter || $supplierFilter || $statusFilter || $stockFilter; @endphp @if ($filtersActive) @endif
@canany(['products.update', 'products.delete']) @endcanany ProductSKUCategoryMRPSelling priceQty AvailableStatus @forelse ($products as $product) @canany(['products.update', 'products.delete']) @endcanany @php $qtyAvailable = (int) ($product->stock_balances_sum_quantity ?? 0); @endphp @empty @endforelse
Supplier
{{ $product->name }}
@if ($product->brandRelation)
{{ $product->brandRelation->name }}
@endif
{{ $product->sku }} {{ $product->category?->name ?? '—' }} {{ $product->supplierLinks->firstWhere('pivot.is_preferred', true)?->name ?? '—' }} {{ $product->mrp !== null ? number_format($product->mrp, 2) : '—' }} {{ $product->selling_price !== null ? number_format($product->selling_price, 2) : '—' }} $qtyAvailable === 0, 'text-amber-600 dark:text-amber-400' => $qtyAvailable > 0 && $qtyAvailable <= $product->reorder_level, 'text-gray-800 dark:text-gray-100' => $qtyAvailable > $product->reorder_level, ])> {{ number_format($qtyAvailable) }} {{ $product->is_active ? 'Active' : 'Inactive' }} View @can('products.update') @endcan @can('products.delete') @endcan
@if ($filtersActive) @else @endif
@if ($products->isNotEmpty())
{{ $products->links() }}
@endif
@if ($showForm)

{{ $editingId ? 'Edit Product' : 'New Product' }}

Identity

Mandatory on a GST invoice above the turnover threshold.

Pricing

Stock thresholds

@endif {{-- Bulk Set HSN Code modal --}} @if ($showBulkHsnForm)

Set HSN Code

Applies to {{ count($selected) }} selected {{ Str::plural('product', count($selected)) }}.

@endif