|
@@ -372,7 +372,13 @@ class PracticeManagementController extends Controller
|
|
|
|
|
|
public function billingManager(Request $request, $proUid = null)
|
|
|
{
|
|
|
- $notes = Note::orderBy('effective_dateest', 'desc')->paginate();
|
|
|
+ $pro = Pro::where('uid', $proUid)->first();
|
|
|
+ $notes = [];
|
|
|
+ if($pro){
|
|
|
+ $notes = Note::where('hcp_pro_id', $pro->id)->orderBy('effective_dateest', 'desc')->paginate();
|
|
|
+ }else{
|
|
|
+ $notes = Note::orderBy('effective_dateest', 'desc')->paginate();
|
|
|
+ }
|
|
|
return view('app.practice-management.billing-manager', compact('notes'));
|
|
|
}
|
|
|
|