fix:pariwisata and report pariwisata
This commit is contained in:
@@ -36,9 +36,7 @@ class TourismController extends Controller
|
||||
// Mengambil data untuk dropdown
|
||||
$dropdownOptions = [
|
||||
'village_name' => DB::table('villages')->orderBy('village_name')->pluck('village_name', 'village_code'),
|
||||
'district_name' => DB::table('districts')->orderBy('district_name')->pluck('district_name', 'district_code'),
|
||||
'business_type_id' => DB::table('business_type')->orderBy('business_type')->pluck('business_type', 'id'),
|
||||
'business_scale_id' => DB::table('business_scale')->orderBy('business_scale')->pluck('business_scale', 'id'),
|
||||
'district_name' => DB::table('districts')->orderBy('district_name')->pluck('district_name', 'district_code')
|
||||
];
|
||||
|
||||
$fields = $this->getFields();
|
||||
@@ -70,13 +68,9 @@ class TourismController extends Controller
|
||||
$district = DB::table('districts')->where('district_code', $modelInstance->district_code)->first();
|
||||
$modelInstance->district_name = $district ? $district->district_name : null;
|
||||
|
||||
$business_type = DB::table('business_type')->where('id', $modelInstance->business_type_id)->first();
|
||||
$modelInstance->business_scale_id = $business_type ? $business_type->id : null;
|
||||
|
||||
$dropdownOptions = [
|
||||
'village_name' => DB::table('villages')->orderBy('village_name')->pluck('village_name', 'village_code'),
|
||||
'district_name' => DB::table('districts')->orderBy('district_name')->pluck('district_name', 'district_code'),
|
||||
'business_type_id' => DB::table('business_type')->orderBy('business_type')->pluck('business_type', 'id'),
|
||||
'district_name' => DB::table('districts')->orderBy('district_name')->pluck('district_name', 'district_code')
|
||||
];
|
||||
|
||||
$fields = $this->getFields();
|
||||
@@ -90,46 +84,62 @@ class TourismController extends Controller
|
||||
private function getFields()
|
||||
{
|
||||
return [
|
||||
"business_name" => "Nama Usaha",
|
||||
"business_form" => "Bentuk Usaha",
|
||||
"project_name" => "Nama Project",
|
||||
"project_id" => "ID Proyek",
|
||||
"project_type_id" => "Jenis Proyek",
|
||||
"nib" => "NIB",
|
||||
"business_name" => "Nama Perusahaan",
|
||||
"oss_publication_date" => "Tanggal Terbit OSS",
|
||||
"investment_status_description" => "Uraian Status Penanaman Modal",
|
||||
"business_form" => "Uraian Jenis Perusahaan",
|
||||
"project_risk" => "Risiko Proyek",
|
||||
"project_name" => "Nama Proyek",
|
||||
"business_scale" => "Uraian Skala Usaha",
|
||||
"business_address" => "Alamat Usaha",
|
||||
"district_name" => "Kecamatan",
|
||||
"village_name" => "Desa",
|
||||
"land_area" => "Luas Tanah",
|
||||
"longitude" => "Longitude",
|
||||
"latitude" => "Latitude",
|
||||
"project_submission_date" => "Tanggal Pengajuan Project",
|
||||
"kbli" => "KBLI",
|
||||
"kbli_title" => "Judul KBLI",
|
||||
"supervisory_sector" => "Sektor Pembina",
|
||||
"user_name" => "Nama User",
|
||||
"email" => "Email",
|
||||
"contact" => "Kontak",
|
||||
"land_area_in_m2" => "Luas Tanah (m2)",
|
||||
"investment_amount" => "Jumlah Investasi",
|
||||
"number_of_employee" => "TKI",
|
||||
"business_type_id" => "Jenis Usaha",
|
||||
"project_id" => "Priject ID",
|
||||
"nib" => "NIB",
|
||||
"jenis_proyek" => "Jenis Proyek",
|
||||
"status_penanaman_modal" => "Status Penanaman Modal",
|
||||
"uraian_resiko_proyek" => "Uraian Resiko Proyek",
|
||||
"business_scale_id" => "Skala Bisnis/Usaha",
|
||||
"terbit_oss" => "Terbit OSS",
|
||||
"tki" => "TKI",
|
||||
];
|
||||
}
|
||||
|
||||
private function getFieldTypes()
|
||||
{
|
||||
return [
|
||||
"project_id" => "text",
|
||||
"project_type_id" => "text",
|
||||
"nib" => "text",
|
||||
"business_name" => "text",
|
||||
"oss_publication_date" => "date",
|
||||
"investment_status_description" => "text",
|
||||
"business_form" => "text",
|
||||
"project_risk" => "text",
|
||||
"project_name" => "text",
|
||||
"business_address" => "textarea",
|
||||
"business_scale" => "text",
|
||||
"business_address" => "text",
|
||||
"district_name" => "combobox",
|
||||
"village_name" => "combobox",
|
||||
"land_area" => "text",
|
||||
"longitude" => "text",
|
||||
"latitude" => "text",
|
||||
"project_submission_date" => "date",
|
||||
"kbli" => "text",
|
||||
"kbli_title" => "text",
|
||||
"supervisory_sector" => "text",
|
||||
"user_name" => "text",
|
||||
"email" => "text",
|
||||
"contact" => "text",
|
||||
"land_area_in_m2" => "text",
|
||||
"investment_amount" => "text",
|
||||
"number_of_employee" => "text",
|
||||
"business_type_id" => "select",
|
||||
"project_id" => "text",
|
||||
"nib" => "text",
|
||||
"jenis_proyek" => "text",
|
||||
"status_penanaman_modal" => "text",
|
||||
"uraian_resiko_proyek" => "text",
|
||||
"business_scale_id" => "select",
|
||||
"terbit_oss" => "date"
|
||||
"tki" => "text",
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user