Parcourir la source

Pro filter in billing-manager

Vijayakrishnan il y a 4 ans
Parent
commit
69ff114efc

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

@@ -446,7 +446,7 @@ class PracticeManagementController extends Controller
         }else{
             $notes = Note::orderBy('effective_dateest', 'desc')->paginate();
         }
-        return view('app.practice-management.billing-manager', compact('notes', 'allPros', 'expectedForHcp', 'targetPro'));
+        return view('app.practice-management.billing-manager', compact('notes', 'allPros', 'expectedForHcp', 'targetPro', 'proUid'));
     }
 
     public function claims(Request $request)

+ 9 - 15
resources/views/app/practice-management/billing-manager.blade.php

@@ -3,27 +3,21 @@
 @section('content')
 
     <div class="p-3 mcp-theme-1">
-        <div class="card">
-            <div class="card-body p-2">
-
-                @foreach($allPros as $_pro)
-                    <div>
-                        <a href="{{ route('practice-management.billingManager', $_pro) }}">
-                            {{$_pro->name_last}}, {{$_pro->name_first}}
-                        </a>
-                    </div>
-                @endforeach
 
-            </div>
-        </div>
         <div class="card">
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
                 <strong class="mr-4">
                     <i class="fas fa-user-injured"></i>
-                    Notes
+                    Billing Manager
                 </strong>
-
+                <select class="ml-auto max-width-300px form-control form-control-sm"
+                        onchange="fastLoad('/practice-management/billing-manager/' + this.value, true, false, false)">
+                    <option value="" {{ $proUid === '' ? 'selected' : '' }}>All Pros</option>
+                    @foreach($allPros as $_pro)
+                        <option value="{{$_pro->uid}}" {{ $proUid === $_pro->uid ? 'selected' : '' }}>{{$_pro->displayName()}}</option>
+                    @endforeach
+                </select>
             </div>
             <div class="card-body p-0">
                 <table class="table table-sm table-condensed p-0 m-0">
@@ -62,7 +56,7 @@
                                 </a>
                                 <span class="ml-1">{{ $note->is_cancelled ? '[cancelled]' : '' }}</span>
                             </td>
-                            <td>{{$note->hcpPro->name_first}} {{$note->hcpPro->name_first}}</td>
+                            <td>{{$note->hcpPro->displayName()}}</td>
                             <td>{{$note->is_signed_by_hcp?'Yes':'No'}}</td>
                             <td>
                                 <table class="table table-sm table-condensed table-stripe">