@extends('admin.admin_dashboard') @section('admin')
{{-- Statistics Cards --}}

৳{{ number_format($totalSalesAmount, 0) }}

Total Sales

৳{{ number_format($totalPurchasesAmount, 0) }}

Total Purchases

৳{{ number_format($totalSalesCost, 0) }}

Total Cost (COGS)

৳{{ number_format($totalSalesProfit, 0) }}

Total Profit
{{-- Filters --}}

Filters

{{-- Summary Table --}}

{{ ucfirst($groupBy) }} Summary

@if($reportType != 'purchases') @endif @if($reportType != 'sales') @endif @if($reportType == 'both') @endif @forelse($reportData as $item) @if($reportType != 'purchases') @endif @if($reportType != 'sales') @endif @if($reportType == 'both') @endif @empty @endforelse @if($reportData->count() > 0) @if($reportType != 'purchases') @endif @if($reportType != 'sales') @endif @if($reportType == 'both') @endif @endif
# PeriodSales Count Sales Amount Sales Cost Sales ProfitPurchase Count Purchase AmountNet Profit
{{ $loop->iteration }} {{ $item['period_label'] }}{{ $item['sales_count'] }} ৳{{ number_format($item['sales_amount'], 2) }} ৳{{ number_format($item['sales_cost'], 2) }} ৳{{ number_format($item['sales_profit'], 2) }} {{ $item['purchases_count'] }} ৳{{ number_format($item['purchases_amount'], 2) }} ৳{{ number_format($item['net_profit'], 2) }}
No data found
Total:{{ $reportData->sum('sales_count') }} ৳{{ number_format($totalSalesAmount, 2) }} ৳{{ number_format($totalSalesCost, 2) }} ৳{{ number_format($totalSalesProfit, 2) }}{{ $reportData->sum('purchases_count') }} ৳{{ number_format($totalPurchasesAmount, 2) }}৳{{ number_format($totalSalesProfit, 2) }}
@endsection @section('customjs') @endsection