@extends('layouts.app') @section('title', 'Revenue Analysis') @section('content')

Revenue by Department

@foreach($byDept as $d)
{{ $d->department ?: 'General' }}KES {{ number_format($d->revenue) }}
@endforeach

Revenue by Payer

@foreach($byPayer as $p)
{{ str_replace('_',' ',$p->payment_mode) }}KES {{ number_format($p->revenue) }}
@endforeach
@endsection