This commit is contained in:
Jagad R R
2025-06-26 19:47:57 +07:00
parent a286e4c28a
commit c052d8508b
7 changed files with 93 additions and 6 deletions
@@ -52,7 +52,7 @@ class FormEntertainmentPresentationController extends Controller
}
// Calculate the actual start date for data retrieval (1 month before currentPeriodStartDate)
$dataRetrievalStartDate = $currentPeriodStartDate->copy()->subMonth()->startOfDay();
$dataRetrievalStartDate = $currentPeriodStartDate->copy()->subMonth()->subDay()->startOfDay();
$forms = FormEntertaimentPresentation::whereBetween('tanggal', [$dataRetrievalStartDate, $currentPeriodClosingDate])
->orderBy('tanggal', 'desc')