update
This commit is contained in:
@@ -86,11 +86,7 @@ class ListController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($akhir != '' AND $mulai != $akhir){
|
if ($akhir != '' AND $mulai != $akhir){
|
||||||
if ($mulai == $akhir){
|
$arraylist = $arraylist->whereBetween('verifikasi', [$mulai, $akhir]);
|
||||||
$arraylist = $arraylist->whereDate('verifikasi', $mulai);
|
|
||||||
} else {
|
|
||||||
$arraylist = $arraylist->whereBetween('verifikasi', [$mulai, $akhir]);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($jenis == 'ThisDay' OR $jenis == ''){
|
if ($jenis == 'ThisDay' OR $jenis == ''){
|
||||||
if ($mulai == '' OR is_null($mulai)){ $mulai = date('Y-m-d'); }
|
if ($mulai == '' OR is_null($mulai)){ $mulai = date('Y-m-d'); }
|
||||||
@@ -100,7 +96,11 @@ class ListController extends Controller
|
|||||||
} else if ($jenis == 'mundur3'){
|
} else if ($jenis == 'mundur3'){
|
||||||
$arraylist = $arraylist->whereDate('verifikasi', '>=', Carbon::today()->subDays(2));
|
$arraylist = $arraylist->whereDate('verifikasi', '>=', Carbon::today()->subDays(2));
|
||||||
} else {
|
} else {
|
||||||
|
if ($mulai == $akhir){
|
||||||
|
$arraylist = $arraylist->whereDate('verifikasi', $mulai);
|
||||||
|
} else {
|
||||||
|
$arraylist = $arraylist->whereBetween('verifikasi', [$mulai, $akhir]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$arraylist = $arraylist->get();
|
$arraylist = $arraylist->get();
|
||||||
|
|||||||
Reference in New Issue
Block a user