From ecd1ddb7a752d755e440fce7c7e703754fb2fc2b Mon Sep 17 00:00:00 2001 From: Afiq Date: Mon, 18 Jan 2021 09:13:10 +0800 Subject: [PATCH] add weekly --- app/Http/Controllers/GadaiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/GadaiController.php b/app/Http/Controllers/GadaiController.php index 568cf4e..7360b79 100644 --- a/app/Http/Controllers/GadaiController.php +++ b/app/Http/Controllers/GadaiController.php @@ -1269,7 +1269,7 @@ class GadaiController extends Controller if($request->method == 'daily'){ array_push($array_totalup,['tarikh'=>$current->toDateString(),'totalgadai'=>0,'totaltebus'=>0,'totalupah'=>0]); } - if($request->method == 'weekly'){ + if($request->method == 'weekly'){//weekly for($i=0;$i<7;$i++){ if($i == 0){ $weekly_array_date = $weekly->subDays(0);