تقرير كشف المساهمات

@if ($occasion->user->bank_account) @endif
{{ $occasion->title }} المناسبة:
{{ $date }} تاريخ التقرير:
{{ $occasion->user->name }} صاحب المناسبة:
{{ $occasion->user->phone }} رقم الجوال:
{{ $occasion->user->bank_account }} رقم الحساب البنكي:
ملخص مالي
@if (isset($withdrawalsAmount) && $withdrawalsAmount > 0) @endif
{{ number_format($totalAmount, 0) }} SDG جملة المبلغ:
{{ number_format($commissionAmount, 0) }} SDG عمولة الموقع ({{ $commissionPercentage }}%):
{{ number_format($withdrawalsAmount, 0) }} SDG مسحوبات سابقة:
{{ number_format($netAmount, 0) }} SDG صافي المبلغ:
@if (isset($withdrawalsList) && count($withdrawalsList) > 0)

سجل المسحوبات السابقة

@php $totalComm = 0; $totalNet = 0; @endphp @foreach ($withdrawalsList as $withdrawal) @php if (isset($withdrawal->commission_amount) && $withdrawal->commission_amount > 0) { $comm = $withdrawal->commission_amount; } else { $comm = $withdrawal->amount * ($commissionPercentage / 100); } $net = $withdrawal->amount - $comm; $totalComm += $comm; $totalNet += $net; @endphp @endforeach
التاريخ المبلغ المطلوب العمولة المخصومة صافي المبلغ المرسل
{{ $withdrawal->created_at->format('Y-m-d') }} {{ number_format($withdrawal->amount, 0) }} SDG {{ number_format($comm, 0) }} SDG {{ number_format($net, 0) }} SDG
المجموع الكلي {{ number_format($withdrawalsList->sum('amount'), 0) }} SDG {{ number_format($totalComm, 0) }} SDG {{ number_format($totalNet, 0) }} SDG
@endif

تفاصيل المساهمات

@foreach ($donations as $donation) @endforeach
التاريخ رقم المعاملة المبلغ المساهم #
{{ $donation->created_at->format('Y-m-d') }} {{ $donation->transaction_id ?? '-' }} {{ number_format($donation->amount, 0) }} SDG {{ $donation->donor_name ?? 'فاعل خير' }} @if ($donation->donor_phone)
{{ $donation->donor_phone }} @endif
{{ $loop->iteration }}