fix aging

This commit is contained in:
hafifierahman
2022-08-15 01:18:19 +08:00
parent e6a3554b80
commit 0f5cd88afd
+6 -2
View File
@@ -2762,8 +2762,10 @@ class AdminPageController extends Controller
if($i == 13)
{
${"tempoh".$i."count"} = ${"tempoh".$i}->where('tempoh','>',12)->count();
}else if($i == 1){
${"tempoh".$i."count"} = ${"tempoh".$i}->where([['tempoh','>',0],['tempoh','<=',1.5]])->count();
}else{
${"tempoh".$i."count"} = ${"tempoh".$i}->where([['tempoh','>',$i-1],['tempoh','<=',$i]])->count();
${"tempoh".$i."count"} = ${"tempoh".$i}->where([['tempoh','>',$i-(0.5)],['tempoh','<=',$i+(0.5)]])->count();
}
${"tempoh".$i."sum"} = ${"tempoh".$i}->sum('bakipjm');
array_push($arraycount,${"tempoh".$i."count"});
@@ -2830,8 +2832,10 @@ class AdminPageController extends Controller
if($i == 13)
{
${"tempoh".$i."count"} = ${"tempoh".$i}->where('tempoh','>',12)->count();
}else if($i == 1){
${"tempoh".$i."count"} = ${"tempoh".$i}->where([['tempoh','>',0],['tempoh','<=',1.5]])->count();
}else{
${"tempoh".$i."count"} = ${"tempoh".$i}->where([['tempoh','>',$i-1],['tempoh','<=',$i]])->count();
${"tempoh".$i."count"} = ${"tempoh".$i}->where([['tempoh','>',$i-(0.5)],['tempoh','<=',$i+(0.5)]])->count();
}
${"tempoh".$i."sum"} = ${"tempoh".$i}->sum('bakipjm');
array_push($arraycount,${"tempoh".$i."count"});