@php($totalCashReceived = $receivedTransactions->sum('amount')) @php($totalCashSale = $cashSales->sum('total')-$cashSales->sum('discount')) @php($totalOtherIncome = $otherIncomes->sum('amount')) @php($totalCash = ($totalCashReceived+$totalCashSale+$totalOtherIncome+$previousCash+$bankWithdrawal)) @php($totalCashPayment = $paidTransactions->sum('amount')) @php($totalOtherExpense = $otherExpenses->sum('amount')) @php($totalExpense = ($totalCashPayment+$totalOtherExpense+$purchaseTransportCost+$purchaseLabourCost+$saleTransportCost+$saleLabourCost+$bankDeposit)) @php($todayCash = ($totalCash-$totalExpense)) {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($todayCash = ($totalCash-$totalExpense))--}} {{-- --}} {{-- --}} {{-- --}}
Description Amount Total Amount
Received Amount
Old Cash {{ numberFormat($previousCash,2) }}
Bank Withdrawal {{ numberFormat($bankWithdrawal) }}
Cash Received{{ numberFormat($totalCashReceived,2) }}
Cash Sale{{ numberFormat($totalCashSale,2) }}
Others Income{{ numberFormat($totalOtherIncome,2) }}
Total Cash {{ numberFormat($totalCash,2) }}
Expense Amount
Bank Deposit {{ numberFormat($bankDeposit) }}
Supplier Payment{{ numberFormat($totalCashPayment,2) }}
Other Expense{{ numberFormat($totalOtherExpense,2) }}
Purchase Transport Cost {{ numberFormat($purchaseTransportCost,2) }}
Purchase Labour Cost {{ numberFormat($purchaseLabourCost,2) }}
Sale Transport Cost {{ numberFormat($saleTransportCost,2) }}
Sale Labour Cost {{ numberFormat($saleLabourCost,2) }}
Total Expense {{ numberFormat($totalExpense,2) }}
Today Cash {{ numberFormat($todayCash,2) }}
Today's Cash{{ numberFormat($todayCash) }}