Эх сурвалжийг харах

added pagination to unmapped sms

= 3 жил өмнө
parent
commit
394f36d68a

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

@@ -913,7 +913,7 @@ WHERE measurement.label NOT IN ('SBP', 'DBP')
             });
         }
         $patients = $query->orderBy('name_last', 'asc')->orderBy('name_first', 'asc')->get();
-        $unmappedSMS = ClientSMS::where('client_id', null)->where('incoming_or_outgoing', 'INCOMING')->get();
+        $unmappedSMS = ClientSMS::where('client_id', null)->where('incoming_or_outgoing', 'INCOMING')->paginate(20);
         return view('app/unmapped-sms', compact('unmappedSMS', 'patients'));
     }
 

+ 3 - 0
resources/views/app/unmapped-sms.blade.php

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