Explorar o código

updated bill matrix

logicpowerhouse %!s(int64=4) %!d(string=hai) anos
pai
achega
80cc632295

+ 3 - 2
app/Http/Controllers/PracticeManagementController.php

@@ -424,6 +424,7 @@ class PracticeManagementController extends Controller
         $targetPro = null;
         $allPros = [];
         $expectedForHcp = null;
+
         if ($performerPro->pro_type == 'ADMIN') {
             $allPros = Pro::all();
             $targetPro = Pro::where('uid', $proUid)->first();
@@ -432,9 +433,9 @@ class PracticeManagementController extends Controller
         }
         $rows = [];
         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 {
-            $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'));
     }

+ 0 - 3
resources/views/app/practice-management/hcp-bill-matrix.blade.php

@@ -78,9 +78,6 @@
                     @endforeach
                     </tbody>
                 </table>
-                <div>
-                    {{$rows->links()}}
-                </div>
             </div>
         </div>
     </div>