fix pbg task add toggle and rab krk dlh
This commit is contained in:
@@ -42,11 +42,11 @@ class BigDataResumeController extends Controller
|
||||
}
|
||||
|
||||
$data_settings = DataSetting::all();
|
||||
if($data_settings->isEmpty()){
|
||||
return response()->json(['message' => 'No data setting found']);
|
||||
$target_pad = 0;
|
||||
if($data_settings->where('key', 'TARGET_PAD')->first()){
|
||||
$target_pad = floatval($data_settings->where('key', 'TARGET_PAD')->first()->value ?? 0);
|
||||
}
|
||||
|
||||
$target_pad = floatval(optional($data_settings->where('key', 'TARGET_PAD')->first())->value);
|
||||
$realisasi_terbit_pbg_sum = $big_data_resume->issuance_realization_pbg_sum;
|
||||
$realisasi_terbit_pbg_count = $big_data_resume->issuance_realization_pbg_count;
|
||||
$menunggu_klik_dpmptsp_sum = $big_data_resume->waiting_click_dpmptsp_sum;
|
||||
@@ -107,7 +107,7 @@ class BigDataResumeController extends Controller
|
||||
$business_krk_count = $big_data_resume->business_krk_count;
|
||||
$non_business_rab_count = $big_data_resume->non_business_rab_count;
|
||||
$non_business_krk_count = $big_data_resume->non_business_krk_count;
|
||||
$non_business_dlh_count = $big_data_resume->non_business_dlh_count;
|
||||
$business_dlh_count = $big_data_resume->business_dlh_count;
|
||||
|
||||
$result = [
|
||||
'target_pad' => [
|
||||
@@ -167,7 +167,7 @@ class BigDataResumeController extends Controller
|
||||
'business_krk_count' => $business_krk_count,
|
||||
'non_business_rab_count' => $non_business_rab_count,
|
||||
'non_business_krk_count' => $non_business_krk_count,
|
||||
'non_business_dlh_count' => $non_business_dlh_count
|
||||
'business_dlh_count' => $business_dlh_count
|
||||
];
|
||||
return response()->json($result);
|
||||
}catch(\Exception $e){
|
||||
@@ -336,9 +336,15 @@ class BigDataResumeController extends Controller
|
||||
return $pdf->download('laporan-pimpinan.pdf');
|
||||
}
|
||||
private function response_empty_resume(){
|
||||
$data_settings = DataSetting::all();
|
||||
$target_pad = 0;
|
||||
if($data_settings->where('key', 'TARGET_PAD')->first()){
|
||||
$target_pad = floatval($data_settings->where('key', 'TARGET_PAD')->first()->value ?? 0);
|
||||
}
|
||||
|
||||
$result = [
|
||||
'target_pad' => [
|
||||
'sum' => 0,
|
||||
'sum' => $target_pad,
|
||||
'percentage' => 100,
|
||||
],
|
||||
'tata_ruang' => [
|
||||
|
||||
Reference in New Issue
Block a user