{{ $this->form }}
عرض التقرير
@if(isset($reportData['summary']))
{{ number_format($reportData['summary']['total_movements']) }}
إجمالي الحركات
{{ number_format($reportData['summary']['total_in']) }}
إجمالي الإضافات
{{ number_format($reportData['summary']['total_out']) }}
إجمالي الخصومات
{{ ($reportData['summary']['net_movement'] >= 0 ? '+' : '') . number_format($reportData['summary']['net_movement']) }}
صافي الحركة
@if($reportData['top_products']->count() > 0)

أكثر المنتجات حركة

@foreach($reportData['top_products'] as $index => $product) @endforeach
# المنتج عدد الحركات إضافات خصومات الصافي
{{ $index + 1 }} {{ $product['product_name'] }} {{ number_format($product['total_movements']) }} +{{ number_format($product['total_in']) }} -{{ number_format($product['total_out']) }} {{ number_format($product['total_in'] - $product['total_out']) }}
@endif @if($reportData['movements']->count() > 0)

تفاصيل الحركات

@foreach($reportData['movements'] as $movement) @endforeach
التاريخ المنتج النوع الكمية الرصيد بعد السبب المستخدم
{{ $movement->created_at->format('Y-m-d H:i') }} {{ $movement->product->name ?? 'غير معروف' }} @if($movement->type === 'in') إضافة @else خصم @endif {{ $movement->type === 'in' ? '+' : '-' }}{{ number_format($movement->quantity) }} {{ number_format($movement->balance_after) }} {{ $movement->reason ?? '-' }} {{ $movement->user->name ?? '-' }}
@else
لا توجد حركات في الفترة المحددة
@endif @endif