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