@if ($search || $warehouseFilter || $expiryFilter) @endif
@can('reports.export') @endcan
@if ($batches->isEmpty() && ($search || $warehouseFilter || $expiryFilter)) @elseif ($batches->isEmpty()) @else
ProductBatchWarehouseQuantityUnit CostExpiry @foreach ($batches as $batch) @endforeach
{{ $batch->product->name }}
{{ $batch->product->sku }}
{{ $batch->batch_number }} {{ $batch->warehouse->name }} {{ $batch->quantity }} {{ number_format($batch->unit_cost, 2) }} @if ($batch->expiry_date) $batch->isExpired(), 'bg-amber-50 text-amber-700 dark:bg-amber-500/10 dark:text-amber-400' => ! $batch->isExpired() && $batch->daysUntilExpiry() <= 30, 'bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-400' => ! $batch->isExpired() && $batch->daysUntilExpiry() > 30, ])> {{ $batch->expiry_date->format('d M Y') }} @if ($batch->isExpired()) · expired @else · {{ $batch->daysUntilExpiry() }}d left @endif @else @endif
{{ $batches->links() }}
@endif
← Back to stock balances