৳{{ number_format($totalSalesAmount, 0) }}
Total Sales৳{{ number_format($totalPurchasesAmount, 0) }}
Total Purchases৳{{ number_format($totalSalesCost, 0) }}
Total Cost (COGS)৳{{ number_format($totalSalesProfit, 0) }}
Total ProfitFilters
{{ ucfirst($groupBy) }} Summary
| # | Period | @if($reportType != 'purchases')Sales Count | Sales Amount | Sales Cost | Sales Profit | @endif @if($reportType != 'sales')Purchase Count | Purchase Amount | @endif @if($reportType == 'both')Net Profit | @endif|
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item['period_label'] }} | @if($reportType != 'purchases'){{ $item['sales_count'] }} | ৳{{ number_format($item['sales_amount'], 2) }} | ৳{{ number_format($item['sales_cost'], 2) }} | ৳{{ number_format($item['sales_profit'], 2) }} | @endif @if($reportType != 'sales'){{ $item['purchases_count'] }} | ৳{{ number_format($item['purchases_amount'], 2) }} | @endif @if($reportType == 'both')৳{{ number_format($item['net_profit'], 2) }} | @endif|
| No data found | |||||||||
| Total: | @if($reportType != 'purchases'){{ $reportData->sum('sales_count') }} | ৳{{ number_format($totalSalesAmount, 2) }} | ৳{{ number_format($totalSalesCost, 2) }} | ৳{{ number_format($totalSalesProfit, 2) }} | @endif @if($reportType != 'sales'){{ $reportData->sum('purchases_count') }} | ৳{{ number_format($totalPurchasesAmount, 2) }} | @endif @if($reportType == 'both')৳{{ number_format($totalSalesProfit, 2) }} | @endif||