@extends('business.layout') @section('title', 'Reports & Profit') @section('content')
Revenue
UGX {{ number_format($revenue) }}
Gross Profit
UGX {{ number_format($grossProfit) }}
Expenses
UGX {{ number_format($expensesTotal) }}
Net Profit
UGX {{ number_format($netProfit) }}

Top Products

@foreach($byProduct as $r)@endforeach
ProductQtyTotal (UGX)
{{ $r->product_name }}{{ (float)$r->qty }}{{ number_format((float)$r->total) }}

Sales by Employee & Branch

@foreach($byEmployee as $e)@endforeach
EmployeeSalesTotal (UGX)
{{ $e->name }}{{ $e->count }}{{ number_format((float)$e->total) }}

@foreach($byBranch as $b)@endforeach
BranchSalesTotal (UGX)
{{ $b->name }}{{ $b->count }}{{ number_format((float)$b->total) }}

Tax & Stock Valuation

VAT Collected: UGX {{ number_format($taxTotal) }}

Current Stock Valuation (Cost): UGX {{ number_format((float)$stockValuation) }}

Customer Debts & Supplier Balances

Customer Debts: UGX {{ number_format($customerDebts->sum('balance')) }} ({{ $customerDebts->count() }} customers)

Supplier Balances: UGX {{ number_format($supplierBalances->sum('balance')) }} ({{ $supplierBalances->count() }} suppliers)

@endsection