@php($totalAsset=0) @php($totalLiability=0) @php($totalAsset += $cash) @php($totalLiability += $supplierDue['Debit']) {{-- --}} @php($totalAsset += $bankBalance) @php($totalLiability += $loanPrincipal) @php($totalAsset += $customerDue['Credit']) @php($totalLiability += $customerDue['Debit']) @php($totalAsset += $stock) @php($totalLiability += 0) @php($totalAsset += $supplierDue['Credit']) @php($totalLiability += 0) {{-- --}} {{-- --}} {{-- @php($totalCashSale = $cashSales->sum('total'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalCreditSale = $creditSales->sum('total'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalPurchase = $purchase->sum('total'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($income = $totalCashSale+$totalCreditSale+$totalStockPrice-$totalPurchase)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalOtherIncome = $otherIncomes->sum('amount'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($grossIncome = $totalOtherIncome+$income)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($expense = $otherExpenses->sum('amount'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalLabourCost = $cashSales->sum('labour_cost') + $creditSales->sum('labour_cost'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalTransportCost = $cashSales->sum('transport_cost') + $creditSales->sum('transport_cost'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalVat = $cashSales->sum('vat') + $creditSales->sum('vat'))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($totalSaleCost = $totalLabourCost+$totalTransportCost+$totalVat)--}} {{-- @php($netExpense = $totalSaleCost + $expense)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($netIncome = $grossIncome - $netExpense)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
Assets Liabilities
Cash{{ numberFormat($cash,2) }} Supplier's Payable{{ numberFormat($supplierDue['Debit'],2) }}
Bank Balanced{{ numberFormat($bankBalance,2) }} সিসি-লোন (প্রিঞ্চিপাল ব্যালেন্স){{ bengaliNumber($loanPrincipal,2) }}
Customer's Receivable{{ numberFormat($customerDue['Credit'],2) }} Advance Sale{{ numberFormat($customerDue['Debit'],2) }}
Present Stock{{ numberFormat($stock,2) }}
Advance Purchase{{ numberFormat($supplierDue['Credit'],2) }}
Total{{ numberFormat($totalAsset,2) }} Total{{ numberFormat($totalLiability,2) }}
Total Cash Sale{{ numberFormat($totalCashSale) }}
Total Credit Sale{{ numberFormat($totalCreditSale) }}
Total Stock{{ numberFormat($totalStockPrice) }}
{{ numberFormat($totalCashSale+$totalCreditSale+$totalStockPrice) }}
Total Purchase Cost{{ numberFormat($totalPurchase) }}
{{ numberFormat($income) }}
Other Income{{ numberFormat($totalOtherIncome) }}
Gross Profit{{ numberFormat($grossIncome) }}
Expenses{{ numberFormat($expense) }}
Total Labour Cost{{ numberFormat($totalLabourCost) }}
Total Transport Cost{{ numberFormat($totalTransportCost) }}
Total Vat{{ numberFormat($totalVat) }}
Net Expense{{ numberFormat($netExpense) }}
Net Profit{{ numberFormat($netIncome) }}