File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ public static function indexQuery(NovaRequest $request, $query)
183183 $ currentDate = now ();
184184 $ startOfYear = $ currentDate ->copy ()->startOfYear ();
185185 $ triwulan = match (true ) {
186- $ currentDate ->between ($ startOfYear , $ startOfYear ->copy ()->addMonths (3 )-> addDays ( 10 ) ) => 4 ,
187- $ currentDate ->between ($ startOfYear ->copy ()->addMonths (3 ), $ startOfYear ->copy ()->addMonths (6 )-> addDays ( 10 ) ) => 1 ,
188- $ currentDate ->between ($ startOfYear ->copy ()->addMonths (6 ), $ startOfYear ->copy ()->addMonths (9 )-> addDays ( 10 ) ) => 2 ,
189- $ currentDate ->between ($ startOfYear ->copy ()->addMonths (9 ), $ startOfYear ->copy ()->endOfYear ()-> addDays ( 10 ) ) => 3 ,
186+ $ currentDate ->between ($ startOfYear , $ startOfYear ->copy ()->addMonths (3 )) => 4 ,
187+ $ currentDate ->between ($ startOfYear ->copy ()->addMonths (3 ), $ startOfYear ->copy ()->addMonths (6 )) => 1 ,
188+ $ currentDate ->between ($ startOfYear ->copy ()->addMonths (6 ), $ startOfYear ->copy ()->addMonths (9 )) => 2 ,
189+ $ currentDate ->between ($ startOfYear ->copy ()->addMonths (9 ), $ startOfYear ->copy ()->endOfYear ()) => 3 ,
190190 };
191191
192192 return $ query ->where ('tahun ' , session ('year ' ))
You can’t perform that action at this time.
0 commit comments