Show payments and paid bills on billing dashboards.
Deploy Ladill Care / deploy (push) Successful in 1m21s

Cashiers and other bills.view roles get today's collections breakdown and a recent paid-invoice list under the existing metric cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 23:40:04 +00:00
co-authored by Cursor
parent e69c7da0d6
commit 4ad3a8a901
4 changed files with 247 additions and 1 deletions
@@ -80,6 +80,14 @@ class DashboardController extends Controller
? $this->patientQueueForMember($request, $organization->id, $owner, $member, $branchScope)
: [collect(), collect(), null];
$showBillingPanel = $canBills;
$paymentStats = $showBillingPanel
? $this->reports->todayPaymentStats($owner, $organization->id, $branchScope)
: null;
$recentPaidBills = $showBillingPanel
? $this->reports->recentPaidBills($owner, $organization->id, $branchScope)
: collect();
return view('care.dashboard', [
'organization' => $organization,
'member' => $member,
@@ -98,6 +106,9 @@ class DashboardController extends Controller
'inConsultation' => $inConsultation,
'practitionerId' => $practitionerId,
'specialtyModules' => $this->specialtyModules->enabledModulesForMember($organization, $member),
'showBillingPanel' => $showBillingPanel,
'paymentStats' => $paymentStats,
'recentPaidBills' => $recentPaidBills,
]);
}