This commit is contained in:
Pusdatin BPKD Jkt
2022-08-09 15:48:49 +07:00
parent 7e9b0e284a
commit e0ac0bb8db
16 changed files with 232 additions and 208 deletions
@@ -41,13 +41,13 @@ class NotifikasiController extends Controller
$post = $request->all();
$offset = $post["start"];
$limit = $post["length"];
$src = $post["src"];
//$src = $post["src"];
$dataFilter=0;
$data = Notifikasi::where("userid",Auth::user()->id)->orderBy("created_at","DESC");
if (!empty($src)){
$data->whereRaw("(LOWER(message) LIKE '%".strtolower($src)."%')");
}
// if (!empty($src)){
// $data->whereRaw("(LOWER(message) LIKE '%".strtolower($src)."%')");
// }
$dataFilter = $data->count();
$dataTotal = Notifikasi::where("userid",Auth::user()->id)->count();