logicpowerhouse пре 4 година
родитељ
комит
d954f63ec1

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

@@ -432,9 +432,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]);
+            $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report WHERE hcp_pro_id = :targetProID"), ['targetProID' => $targetPro->id])->paginate();
         } else {
-            $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report"));
+            $rows = DB::select(DB::raw("SELECT * FROM aemish_bill_report"))->paginate();
         }
         return view('app.practice-management.hcp-bill-matrix', compact('rows', 'allPros', 'expectedForHcp', 'targetPro', 'proUid'));
     }

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

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