|
@@ -259,6 +259,17 @@ class HomeController extends Controller
|
|
|
$totalExpectedAmount = $expectedForHcp + $expectedForCm + $expectedForRme + $expectedForRmm + $expectedForNa;
|
|
|
$reimbursement['nextPaymentAmount'] = $totalExpectedAmount;
|
|
|
|
|
|
+ $milliseconds = strtotime(date('Y-m-d')) . '000';
|
|
|
+
|
|
|
+ return view('app/dashboard', compact('keyNumbers', 'reimbursement', 'milliseconds'));
|
|
|
+ }
|
|
|
+
|
|
|
+ public function dashboardAppointments(Request $request, $_from, $_to) {
|
|
|
+
|
|
|
+ $performer = $this->performer();
|
|
|
+ $performerProID = $performer->pro->id;
|
|
|
+ $isAdmin = ($performer->pro->pro_type === 'ADMIN');
|
|
|
+
|
|
|
if(!$isAdmin) {
|
|
|
$appointments = Appointment::where("pro_id", $performerProID)
|
|
|
->orderBy('start_time', 'asc')
|
|
@@ -296,10 +307,6 @@ class HomeController extends Controller
|
|
|
$appointment->proUid = $appointment->pro->uid;
|
|
|
$appointment->proName = $appointment->pro->displayName();
|
|
|
}
|
|
|
-
|
|
|
- $milliseconds = strtotime(date('Y-m-d')) . '000';
|
|
|
-
|
|
|
- return view('app/dashboard', compact('keyNumbers', 'reimbursement', 'appointments', 'milliseconds'));
|
|
|
}
|
|
|
|
|
|
public function patients(Request $request, $filter = '')
|