This commit is contained in:
Jagad R R
2025-03-06 16:24:55 +07:00
parent c3a488b143
commit d2ff42f58b
4 changed files with 53 additions and 29 deletions
@@ -631,7 +631,9 @@ class ReportController extends Controller
$year = $params['year'];
$month = $params['month'];
// get last data
$budget = BudgetControlLog::where('cabang_id', $cabang->id)->where('periode_year', $year)->where('periode_month', $month)->orderBy('created_at', 'desc')->first();
$userIds = UserHasCabang::where('cabang_id', $cabang->id)->pluck('user_id');
// Fetch all relevant forms in one batch