@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
| قبوضات العملاء |
{{ number_format($item['amount'], 2) }} |
{{ $item['count'] }} |
{{ number_format($percentage, 2) }}% |
@endif
@if(isset($data['income']['sale_payments']))
@php
$item = $data['income']['sale_payments'];
$percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0;
@endphp
| دفعات المبيعات |
{{ number_format($item['amount'], 2) }} |
{{ $item['count'] }} |
{{ number_format($percentage, 2) }}% |
@endif
@if(isset($data['income']['cash_in']))
@php
$item = $data['income']['cash_in'];
$percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0;
@endphp
| إيداعات نقدية |
{{ number_format($item['amount'], 2) }} |
{{ $item['count'] }} |
{{ number_format($percentage, 2) }}% |
@endif
@if(isset($data['income']['sale_return_refunds']))
@php
$item = $data['income']['sale_return_refunds'];
$percentage = $total > 0 ? ($item['amount'] / $total) * 100 : 0;
@endphp
| مردودات مرتجعات البيع |
({{ number_format($item['amount'], 2) }}) |
{{ $item['count'] }} |
({{ number_format($percentage, 2) }}%) |
@endif
| الإجمالي |
{{ number_format($total, 2) }} |
{{ $data['summary']['total_transactions'] ?? 0 }} |
100% |