@php $totalDeposits = (float) ($partner->deposits->sum('amount') ?? 0); $totalWithdraws = (float) ($partner->withdrawals->sum('amount') ?? 0); $openingBalance = (float) ($partner->initial_capital ?? 0); $closingBalance = $openingBalance + $totalDeposits - $totalWithdraws; @endphp
| التاريخ | المبلغ |
|---|---|
| {{ $deposit->deposit_date }} | {{ number_format($deposit->amount, 2) }} |
| لا توجد عمليات إيداع | |
| التاريخ | المبلغ |
|---|---|
| {{ $withdrawal->withdrawal_date }} | {{ number_format($withdrawal->amount, 2) }} |
| لا توجد عمليات سحب | |