@extends('layouts.master')
@section('title', $title)
@section('page_css')
@endsection
@section('content')
@php
$m = fn ($v) => '$' . number_format((float) $v, 2);
$p = $s['patients'];
$mo = $s['money'];
$reports = \Illuminate\Support\Facades\DB::table('report_centers')->pluck('id', 'procedure_name');
$rep = fn ($proc) => isset($reports[$proc]) ? route('report_center.show', $reports[$proc]) : null;
@endphp
Daily summary
{{ $s['label'] }}
{{-- patients --}}
Patients
OPD visits
{{ $p['visits'] }}
{{ $p['seen'] }} seen · {{ $p['first_visit'] }} first-time · {{ $p['visits'] - $p['first_visit'] }} returning
New registrations
{{ $p['registered'] }}
patients registered
Emergency
{{ $p['emergencies'] }}
arrived
In-patients
{{ $p['in_now'] }} / {{ $p['beds'] }} beds
occupancy {{ $p['occupancy'] !== null ? $p['occupancy'] . ' %' : '-' }} · +{{ $p['admitted'] }} admitted · −{{ $p['discharged'] }} discharged
{{-- money --}}
Money
Collected today
{{ $m($mo['collected']) }}
discounts {{ $m($mo['discounts']) }} · refunds {{ $m($mo['refunds']) }}
Expenses today
{{ $m($mo['expenses']) }}
net today {{ $m($mo['net']) }}
{{ $s['month'] }} to date
{{ $m($mo['mtd_net']) }}
in {{ $m($mo['mtd_in']) }} · out {{ $m($mo['mtd_out']) }}
Unpaid bills (not pharmacy)
{{ $m($mo['unpaid_total']) }}
{{ $mo['unpaid_count'] }} bill(s) ·
open
| Collected by type | Payments | Amount | Share |
@forelse ($mo['by_type'] as $t)
| {{ $t['type'] }} | {{ $t['n'] }} | {{ $m($t['amount']) }} |
{{ $mo['collected'] > 0 ? number_format(100 * $t['amount'] / $mo['collected'], 1) . ' %' : '-' }} |
@empty
| Nothing collected |
@endforelse
| Total | | {{ $m($mo['collected']) }} | |
{{-- lab & pharmacy --}}
Laboratory & imaging
Lab requests
{{ $s['lab']['lab_requests'] }}
{{ $s['lab']['done'] }} results today
Imaging
{{ $s['lab']['imaging_requests'] }}
requests
Pending results
{{ $s['lab']['pending'] }}
last 7 days @if ($rep('rpt_pending_results'))·
list@endif
Pharmacy & stock
Sales
{{ $m($s['pharmacy']['sales']) }}
{{ $s['pharmacy']['invoices'] }} invoice(s)
Low stock
{{ $s['pharmacy']['low_stock'] }}
at / below reorder @if ($rep('rpt_low_stock'))·
list@endif
Expiring ≤ 30 days
{{ $s['pharmacy']['expiring'] }}
{{ $s['pharmacy']['expired'] }} batch(es) already expired
More detail: Report Center → Financial, Clinical, Laboratory & imaging, Inventory and Staff reports.
@endsection