|
@@ -424,6 +424,7 @@ class PracticeManagementController extends Controller
|
|
$targetPro = null;
|
|
$targetPro = null;
|
|
$allPros = [];
|
|
$allPros = [];
|
|
$expectedForHcp = null;
|
|
$expectedForHcp = null;
|
|
|
|
+
|
|
if ($performerPro->pro_type == 'ADMIN') {
|
|
if ($performerPro->pro_type == 'ADMIN') {
|
|
$allPros = Pro::all();
|
|
$allPros = Pro::all();
|
|
$targetPro = Pro::where('uid', $proUid)->first();
|
|
$targetPro = Pro::where('uid', $proUid)->first();
|
|
@@ -432,9 +433,9 @@ class PracticeManagementController extends Controller
|
|
}
|
|
}
|
|
$rows = [];
|
|
$rows = [];
|
|
if ($targetPro) {
|
|
if ($targetPro) {
|
|
- $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report WHERE hcp_pro_id = :targetProID"), ['targetProID' => $targetPro->id])->paginate();
|
|
|
|
|
|
+ $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report WHERE hcp_pro_id = :targetProID"), ['targetProID' => $targetPro->id]);
|
|
} else {
|
|
} else {
|
|
- $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report"))->paginate();
|
|
|
|
|
|
+ $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report"));
|
|
}
|
|
}
|
|
return view('app.practice-management.hcp-bill-matrix', compact('rows', 'allPros', 'expectedForHcp', 'targetPro', 'proUid'));
|
|
return view('app.practice-management.hcp-bill-matrix', compact('rows', 'allPros', 'expectedForHcp', 'targetPro', 'proUid'));
|
|
}
|
|
}
|