add spatial plannings retribution calculations

This commit is contained in:
arifal hidayat
2025-06-18 02:54:41 +07:00
parent 6946fa7074
commit fc54e20fa4
29 changed files with 2926 additions and 416 deletions

View File

@@ -25,12 +25,13 @@ class BigDataResumeController extends Controller
$filterDate = $request->get("filterByDate");
if (!$filterDate || $filterDate === "latest") {
$big_data_resume = BigdataResume::where('year', now()->year)->latest()->first();
$big_data_resume = BigdataResume::where('year', 'leader')->latest()->first();
if (!$big_data_resume) {
return $this->response_empty_resume();
}
} else {
$big_data_resume = BigdataResume::whereDate('created_at', $filterDate)
$big_data_resume = BigdataResume::where('year', 'leader')
->whereDate('created_at', $filterDate)
->orderBy('id', 'desc')
->first();