@extends('layouts.app') @section('title', $title) @section('styles')@endsection @section('content')

{{ $title }}

{{ $month->format('F Y') }} · Auto-generated from consultation diagnoses · {{ $ageGroup }} patients

@include('reports._moh-month') @if(count($data) === 0)

No data found for {{ $month->format('F Y') }}.

Ensure consultations have diagnoses recorded. Diagnosis is a mandatory field for MoH reporting.

@endif
@php $totalNew = 0; $totalRevisit = 0; $totalAll = 0; @endphp @foreach($data as $i => $row) @php $totalNew += $row['new']; $totalRevisit += $row['revisit']; $totalAll += $row['total']; @endphp @endforeach
#DiagnosisNewRevisitTotal
{{ $i + 1 }} {{ $row['diagnosis'] }} {{ $row['new'] }} {{ $row['revisit'] }} {{ $row['total'] }}
TOTAL {{ $totalNew }} {{ $totalRevisit }} {{ $totalAll }}
@endsection