@extends('layouts.app') @section('content')
عرض جميع حركات الأصناف في المخازن (وارد - منصرف - تحويل)
إجمالي الوارد
{{ number_format($statistics['total_receipts'], 2) }}
{{ $statistics['receipt_count'] }} حركة
إجمالي المنصرف
{{ number_format($statistics['total_issues'], 2) }}
{{ $statistics['issue_count'] }} حركة
إجمالي المحول
{{ number_format($statistics['total_transfers'], 2) }}
{{ $statistics['transfer_count'] }} حركة
إجمالي التكلفة
{{ number_format($statistics['total_cost'], 2) }}
إجمالي الحركات
{{ $statistics['total_movements'] }}
| # | التاريخ | نوع الحركة | الصنف | المخزن | الكمية | السعر | الإجمالي | الرصيد | المستند | الملاحظات |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | @if(isset($movement['date'])) {{ $movement['date'] instanceof \Carbon\Carbon ? $movement['date']->format('Y-m-d') : \Carbon\Carbon::parse($movement['date'])->format('Y-m-d') }} @else - @endif | @php $docType = $movement['document_type'] ?? ''; $isArabic = strpos($docType, 'أذن') !== false; @endphp @if($isArabic && strpos($docType, 'استلام') !== false || !$isArabic && $docType === 'receipt') وارد @elseif($isArabic && strpos($docType, 'صرف') !== false || !$isArabic && $docType === 'issue') منصرف @else تحويل @endif | {{ $movement['item_name'] ?? '-' }} | {{ $movement['to_warehouse'] ?? $movement['from_warehouse'] ?? '-' }} | {{ number_format($movement['quantity'] ?? 0, 2) }} | {{ number_format($movement['unit_price'] ?? 0, 2) }} | {{ number_format($movement['total_cost'] ?? 0, 2) }} | {{ number_format($movement['balance'] ?? 0, 2) }} | {{ $movement['document_number'] ?? '-' }} | {{ $movement['notes'] ?? '-' }} |
لا توجد حركات حالياً
حاول تغيير الفلاتر أو الفترة الزمنية