تحليل الإيرادات

تاريخ التقرير: {{ now()->format('Y-m-d') }} | @if($data['from_date']) من: {{ $data['from_date'] }} | @endif إلى: {{ $data['to_date'] }}
@php $total = $data['summary']['total_income'] ?? 0; @endphp @if(isset($data['income']['customer_payments'])) @php $item = $data['income']['customer_payments']; $percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0; @endphp @endif @if(isset($data['income']['sale_payments'])) @php $item = $data['income']['sale_payments']; $percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0; @endphp @endif @if(isset($data['income']['cash_in'])) @php $item = $data['income']['cash_in']; $percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0; @endphp @endif @if(isset($data['income']['sale_return_refunds'])) @php $item = $data['income']['sale_return_refunds']; $percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0; @endphp @endif
نوع الإيراد المبلغ العمليات النسبة %
قبوضات العملاء {{ number_format($item['amount'], 2) }} {{ $item['count'] }} {{ number_format($percentage, 2) }}%
دفعات المبيعات {{ number_format($item['amount'], 2) }} {{ $item['count'] }} {{ number_format($percentage, 2) }}%
إيداعات نقدية {{ number_format($item['amount'], 2) }} {{ $item['count'] }} {{ number_format($percentage, 2) }}%
مردودات مرتجعات البيع ({{ number_format($item['amount'], 2) }}) {{ $item['count'] }} ({{ number_format($percentage, 2) }}%)
الإجمالي {{ number_format($total, 2) }} {{ $data['summary']['total_transactions'] ?? 0 }} 100%