@php($totalCashSale = $cashSales->sum('product_cost')+$cashSales->sum('vat')-$cashSales->sum('discount')) @php($totalCreditSale = $creditSales->sum('product_cost')+$creditSales->sum('vat')-$creditSales->sum('discount')) @php($totalPurchase = $purchase->sum('total')-$purchase->sum('transport_cost')-$purchase->sum('labour_cost')-$purchase->sum('discount')) @php($income = $totalCashSale+$totalCreditSale+$totalStockPrice-$totalPurchase) @php($totalOtherIncome = $otherIncomes->sum('amount')) @php($grossIncome = $totalOtherIncome+$income) @php($expense = $otherExpenses->sum('amount')) @php($totalLabourCost = $saleLabourCost + $purchaseLabourCost) @php($totalTransportCost = $saleTransportCost + $purchaseTransportCost) @php($totalVat = $cashSales->sum('vat') + $creditSales->sum('vat')) @php($totalSaleCost = $totalLabourCost+$totalTransportCost+$totalVat) @php($netExpense = $totalSaleCost + $expense) @php($netIncome = $grossIncome - $netExpense)
Description Amount Amount Amount
Total Cash Sale{{ numberFormat($totalCashSale,2) }}
Total Credit Sale{{ numberFormat($totalCreditSale,2) }}
Total Stock {{ numberFormat($totalStockPrice,2) }}
{{ numberFormat($totalCashSale+$totalCreditSale+$totalStockPrice,2) }}
Total Purchase {{ numberFormat($totalPurchase,2) }}
{{ numberFormat($income,2) }}
Others Income{{ numberFormat($totalOtherIncome,2) }}
Gross Profit {{ numberFormat($grossIncome,2) }}
Expense{{ numberFormat($expense,2) }}
Labour Cost{{ numberFormat($totalLabourCost,2) }}
Transport Cost{{ numberFormat($totalTransportCost,2) }}
Total Vat{{ numberFormat($totalVat,2) }}
Net Expense {{ numberFormat($netExpense,2) }}
Net Profit {{ numberFormat($netIncome,2) }}