|
|
@ -66,11 +66,11 @@ class DashboardBoDController extends Controller |
|
|
|
|
|
|
|
|
|
|
|
return response()->json([ |
|
|
|
return response()->json([ |
|
|
|
'data' => [ |
|
|
|
'data' => [ |
|
|
|
'total_budget' => (int) ($totalBudgets->total_rencana_biaya ?? 0), |
|
|
|
'total_budget' => $totalBudgets->total_value_proyek ?? 0, |
|
|
|
'total_expenditure' => $totalExpenditure, |
|
|
|
'total_expenditure' => $totalExpenditure, |
|
|
|
'total_invoice' => $totalInvoice, |
|
|
|
'total_invoice' => $totalInvoice, |
|
|
|
'total_paid_invoice' => $totalPaidInvoice, |
|
|
|
'total_paid_invoice' => $totalPaidInvoice, |
|
|
|
'total_value_proyek' => $totalBudgets->total_value_proyek ?? 0, |
|
|
|
'total_value_proyek' => (int) ($totalBudgets->total_rencana_biaya ?? 0), |
|
|
|
'total_income_year' => $totalBudgets->total_income_year ?? 0 |
|
|
|
'total_income_year' => $totalBudgets->total_income_year ?? 0 |
|
|
|
] |
|
|
|
] |
|
|
|
], 200); |
|
|
|
], 200); |
|
|
|