fix aging
This commit is contained in:
@@ -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"});
|
||||
|
||||
Reference in New Issue
Block a user