@extends('layouts.app') @section('title','Revenue by Item Department') @section('styles')@endsection @section('content')

Revenue by Item Department

Buckets invoiced revenue by item department (Pharmacy, Laboratory, Consultation, etc.). A single visit's invoice splits across multiple buckets — consultation line, drugs, lab tests, and so on. For revenue grouped by clinical service area instead (OPD / IPD / ANC / Maternity / Dental / OTC), see the Dashboard's "Revenue by Clinical Service" panel.

@php $exportType = 'revenue-dept'; @endphp @include('reports._date-filter')
@forelse($data as $d) @empty @endforelse
Item Department Invoices Revenue (KES) % Share
{{ $d->department ?: 'Other' }} {{ $d->invoices }} {{ number_format($d->revenue) }} {{ $total > 0 ? round($d->revenue/$total*100,1) : 0 }}%
No invoiced revenue in window.
Total KES {{ number_format($total) }} 100%
@endsection