{{ __('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') }}

@forelse($sales as $sale) @empty @endforelse @if($sales->isNotEmpty()) @endif
{{ __('Product Type') }} {{ __('Total Sold') }} {{ __('Total Revenue (KES)') }} {{ __('% of Total') }}
{{ $sale->product_type }} {{ number_format($sale->total_sold) }} {{ number_format($sale->total_revenue, 2) }}
{{ $grandTotal > 0 ? number_format(($sale->total_revenue / $grandTotal * 100), 1) : 0 }}%
{{ __('No sales data found for the selected period.') }}
{{ __('GRAND TOTAL') }} {{ number_format($sales->sum('total_sold')) }} {{ number_format($grandTotal, 2) }} 100%
@if($sales->isNotEmpty())

{{ __('Payment Status') }}

{{ __('Sales Distribution') }}

@endif