This commit is contained in:
Dwi Swandhana
2026-05-07 09:40:31 +07:00
parent a6b180378b
commit da5105f219
@@ -86,11 +86,7 @@ class ListController extends Controller
}
}
if ($akhir != '' AND $mulai != $akhir){
if ($mulai == $akhir){
$arraylist = $arraylist->whereDate('verifikasi', $mulai);
} else {
$arraylist = $arraylist->whereBetween('verifikasi', [$mulai, $akhir]);
}
$arraylist = $arraylist->whereBetween('verifikasi', [$mulai, $akhir]);
} else {
if ($jenis == 'ThisDay' OR $jenis == ''){
if ($mulai == '' OR is_null($mulai)){ $mulai = date('Y-m-d'); }
@@ -100,7 +96,11 @@ class ListController extends Controller
} else if ($jenis == 'mundur3'){
$arraylist = $arraylist->whereDate('verifikasi', '>=', Carbon::today()->subDays(2));
} else {
if ($mulai == $akhir){
$arraylist = $arraylist->whereDate('verifikasi', $mulai);
} else {
$arraylist = $arraylist->whereBetween('verifikasi', [$mulai, $akhir]);
}
}
}
$arraylist = $arraylist->get();