تقرير الأصناف قريبة الانتهاء

يوم
@forelse($batches as $batch) @php $daysLeft = $batch->expiry_date ? now()->diffInDays(\Carbon\Carbon::parse($batch->expiry_date), false) : null; @endphp @empty @endforelse
المنتج المتغير الفرع الكمية المتبقية تاريخ الانتهاء الأيام المتبقية
{{ $batch->product?->name ?? '-' }} {{ $batch->variant?->name ?? '-' }} {{ $batch->branch?->name ?? '-' }} {{ $batch->remaining_quantity }} {{ $batch->expiry_date }} @if ($daysLeft === null) - @elseif($daysLeft <= 0) منتهي @else {{ $daysLeft }} يوم @endif
لا توجد أصناف قريبة الانتهاء