Show payments and paid bills on billing dashboards.
Deploy Ladill Care / deploy (push) Successful in 1m21s
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:
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user