소스 검색

added pro to billing manager

= 4 년 전
부모
커밋
3a8f41c78d
2개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      app/Http/Controllers/PracticeManagementController.php
  2. 3 0
      resources/views/layouts/template.blade.php

+ 7 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -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'));
     }
 

+ 3 - 0
resources/views/layouts/template.blade.php

@@ -112,10 +112,13 @@
                         <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">My Favorites</a>
                         <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Pro Availability</a>
                         <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Pro Calendar</a>
+
                         @if($pro && $pro->pro_type == 'ADMIN')
                             <a class="dropdown-item" href="{{ route('practice-management.billingManager') }}">Billing Manager</a>
                             <a class="dropdown-item" href="{{ route('practice-management.claims') }}">Claims</a>
                             <a class="dropdown-item" href="/practice-management/tickets">Tickets</a>
+                        @else 
+                            <a class="dropdown-item" href="{{ route('practice-management.billingManager', $pro->uid) }}">Billing Manager</a>
                         @endif
                     </div>
                 </li>