|
|
|
@ -231,7 +231,44 @@ class ProjectController extends Controller
|
|
|
|
|
|
|
|
|
|
public function list() |
|
|
|
|
{ |
|
|
|
|
$data = Project::orderBy('id', 'desc')->get(); |
|
|
|
|
$data = Project::select( |
|
|
|
|
'id', |
|
|
|
|
'kode_sortname', |
|
|
|
|
'jumlah_stakeholder', |
|
|
|
|
'nama', |
|
|
|
|
'mulai_proyek', |
|
|
|
|
'akhir_proyek', |
|
|
|
|
'area_kerja', |
|
|
|
|
'lokasi_kantor', |
|
|
|
|
'rencana_biaya', |
|
|
|
|
'biaya_actual', |
|
|
|
|
'company', |
|
|
|
|
'pm_id', |
|
|
|
|
'type_proyek_id', |
|
|
|
|
'divisi_id', |
|
|
|
|
'persentase_progress', |
|
|
|
|
'keterangan', |
|
|
|
|
'durasi_proyek', |
|
|
|
|
'progress_by_worklog', |
|
|
|
|
'status', |
|
|
|
|
'currency_symbol', |
|
|
|
|
'currency_code', |
|
|
|
|
'currency_name', |
|
|
|
|
'project_objectives', |
|
|
|
|
'considered_success_when', |
|
|
|
|
'potential_risk', |
|
|
|
|
'testing_environment', |
|
|
|
|
'currency_code', |
|
|
|
|
'currency_symbol', |
|
|
|
|
'currency_name', |
|
|
|
|
'budget_health', |
|
|
|
|
'phase_id', |
|
|
|
|
'calculation_status', |
|
|
|
|
'created_at', |
|
|
|
|
'created_by', |
|
|
|
|
'updated_at', |
|
|
|
|
'updated_by' |
|
|
|
|
)->orderBy('id', 'desc')->get(); |
|
|
|
|
$countData = $data->count(); |
|
|
|
|
|
|
|
|
|
if(!$data) |
|
|
|
|