@@ -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'));
@@ -78,6 +78,9 @@
@endforeach
</tbody>
</table>
+ <div>
+ {{$rows->links()}}
+ </div>
</div>