@php $productOptions = $products->map(fn ($product) => (object) ['id' => $product->id, 'name' => "{$product->name} ({$product->sku})"]); @endphp
| Supplier | |||||
|---|---|---|---|---|---|
|
@if ($balance->product)
{{ $balance->product->name }}
{{ $balance->product->sku }}@if ($balance->product->brandRelation) · {{ $balance->product->brandRelation->name }}@endif
@else
Deleted product (#{{ $balance->product_id }})
Stock still recorded here — needs reconciling.
@endif
|
{{ $balance->warehouse->name }} | {{ $balance->product?->supplierLinks->firstWhere('pivot.is_preferred', true)?->name ?? '—' }} | $balance->product && $balance->quantity <= $balance->product->reorder_level && $balance->quantity > 0, 'text-red-600 dark:text-red-400' => $balance->quantity === 0 || ! $balance->product, 'text-gray-800 dark:text-gray-100' => $balance->product && $balance->quantity > $balance->product->reorder_level, ])> {{ $balance->quantity }} | {{ number_format($balance->average_cost, 2) }} | {{ number_format($balance->stockValue(), 2) }} |
|
@if ($filtersActive)
|
|||||