@include('partials.flash')
@if($sales->isNotEmpty())
@endif
{{ __('Filter by Date') }}
{{ __('Grand Total') }}
KES {{ number_format($grandTotal, 2) }}
Total Revenue Generated
{{ __('Payment Received') }}
KES {{ number_format($totalPaid, 2) }}
{{ $grandTotal > 0 ? number_format(($totalPaid / $grandTotal * 100), 1) : 0 }}% of Total
{{ __('Outstanding Dues') }}
KES {{ number_format($totalDues, 2) }}
{{ $grandTotal > 0 ? number_format(($totalDues / $grandTotal * 100), 1) : 0 }}% Unpaid
{{ __('Sales Breakdown') }}
| {{ __('Product Type') }} | {{ __('Total Sold') }} | {{ __('Total Revenue (KES)') }} | {{ __('% of Total') }} |
|---|---|---|---|
| {{ $sale->product_type }} | {{ number_format($sale->total_sold) }} | {{ number_format($sale->total_revenue, 2) }} |
|
| {{ __('No sales data found for the selected period.') }} | |||
| {{ __('GRAND TOTAL') }} | {{ number_format($sales->sum('total_sold')) }} | {{ number_format($grandTotal, 2) }} | 100% |