دفتر الدُفعات (المخزون)

{{-- Filters --}}
@forelse($batches as $batch) @php $expired = $batch->expiry_date && \Carbon\Carbon::parse($batch->expiry_date)->isPast(); $expiringSoon = !$expired && $batch->expiry_date && \Carbon\Carbon::parse($batch->expiry_date)->diffInDays(now()) <= 30; @endphp @empty @endforelse
# المنتج المتغير الفرع الكمية الأصلية المتبقي التكلفة تاريخ الانتهاء الحالة
{{ $batch->id }} {{ $batch->product?->name ?? '-' }} {{ $batch->variant?->name ?? '-' }} {{ $batch->branch?->name ?? '-' }} {{ $batch->quantity }} {{ $batch->remaining_quantity }} {{ number_format($batch->cost_price, 2) }} ج.م {{ $batch->expiry_date ?? '-' }} @if ($expired) منتهي @elseif($expiringSoon) قريب @elseif($batch->remaining_quantity <= 0) نفذ @else متاح @endif
لا توجد دفعات
@if ($batches->hasPages()) @endif