@php $money = fn ($minor) => config('care.billing.currency').' '.number_format($minor / 100, 2); $formatValue = function ($key, $value) use ($money) { if (str_ends_with($key, '_minor')) return $money((int) $value); return $value; }; @endphp

{{ $label }}

{{ $from }} to {{ $to }}

@if ($canExport) Export CSV @endif
@if ($type === 'clinical' && isset($data['diagnoses'])) @forelse ($data['diagnoses'] as $row) @empty @endforelse
DiagnosisCount
{{ $row->description }}{{ $row->total }}
No diagnoses in period.
@else
@foreach ($data as $key => $value)
{{ str_replace('_', ' ', $key) }}
{{ $formatValue($key, $value) }}
@endforeach
@endif