From a835941849252a6fcbcbdc3eda2adfca2f93ca5d Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Tue, 2 Sep 2025 09:57:16 +0700 Subject: [PATCH] update --- app/Imports/DatasetTable21Import.php | 16 ++-- app/Imports/DatasetTable22Import.php | 127 +++++++++++++++++--------- app/Imports/DatasetTable23Import.php | 88 ++++++++++++------ app/Imports/DatasetTable24Import.php | 49 ++++++---- app/Imports/DatasetTable25Import.php | 18 ++-- app/Imports/DatasetTable26Import.php | 16 +++- app/Imports/DatasetTable27Import.php | 18 ++-- app/Imports/DatasetTable28Import.php | 10 +- app/Imports/DatasetTable29Import.php | 82 +++++++++++------ app/Imports/DatasetTable30Import.php | 85 +++++++++++------ app/Imports/DatasetTable31Import.php | 16 ++-- app/Imports/DatasetTable32Import.php | 55 +++++++---- app/Imports/DatasetTable33Import.php | 8 +- app/Imports/DatasetTable34Import.php | 10 +- app/Imports/DatasetTable35Import.php | 28 ++++-- app/Imports/DatasetTable36Import.php | 55 +++++++---- app/Imports/DatasetTable37Import.php | 21 ++++- app/Imports/DatasetTable38Import.php | 37 +++++--- app/Imports/DatasetTable39AImport.php | 12 +-- app/Imports/DatasetTable39Import.php | 12 +-- app/Imports/DatasetTable40Import.php | 8 +- public/.DS_Store | Bin 10244 -> 10244 bytes 22 files changed, 506 insertions(+), 265 deletions(-) diff --git a/app/Imports/DatasetTable21Import.php b/app/Imports/DatasetTable21Import.php index 5c7eca1..f118196 100644 --- a/app/Imports/DatasetTable21Import.php +++ b/app/Imports/DatasetTable21Import.php @@ -37,14 +37,14 @@ public function model(array $row) return new DatasetTable21([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'lokasi' => $row[0], - 'nama_perusahaan' => $row[1], - 'luas_pemanfaatan_aliran_air' => $row[2], - 'luas_wisata_alam' => $row[3], - 'luas_perlindungan_kehati' => $row[4], - 'luas_penyelamatan_lingkungan' => $row[5], - 'luas_penyerapan_karbon' => $row[6], - 'sk' => $row[7], + 'lokasi' => $row[1], + 'nama_perusahaan' => $row[2], + 'luas_pemanfaatan_aliran_air' => $row[3], + 'luas_wisata_alam' => $row[4], + 'luas_perlindungan_kehati' => $row[5], + 'luas_penyelamatan_lingkungan' => $row[6], + 'luas_penyerapan_karbon' => $row[7], + 'sk' => $row[8], ]); } } diff --git a/app/Imports/DatasetTable22Import.php b/app/Imports/DatasetTable22Import.php index 26c6605..c7f9b1b 100644 --- a/app/Imports/DatasetTable22Import.php +++ b/app/Imports/DatasetTable22Import.php @@ -31,53 +31,96 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null && + $row[18] === null && + $row[19] === null && + $row[20] === null && + $row[21] === null && + $row[22] === null && + $row[23] === null && + $row[24] === null && + $row[25] === null && + $row[26] === null && + $row[27] === null && + $row[28] === null && + $row[29] === null && + $row[30] === null && + $row[31] === null && + $row[32] === null && + $row[33] === null && + $row[34] === null && + $row[35] === null && + $row[36] === null && + $row[37] === null && + $row[38] === null && + $row[39] === null && + $row[40] === null && + $row[41] === null + ) { return null; // baris kosong dilewati } return new DatasetTable22([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'lokasi' => $row[0], - 'waktu' => $row[1], - 'lat' => $row[2], - 'long' => $row[3], - 'tempratur' => $row[4], - 'ph' => $row[5], - 'kekeruhan' => $row[6], - 'warna' => $row[7], - 'rasa' => $row[8], - 'bau' => $row[9], - 'tds' => $row[10], - 'bod' => $row[11], - 'cod' => $row[12], - 'do' => $row[13], - 'fosfat' => $row[14], - 'no3' => $row[15], - 'nh3' => $row[16], - 'arsen' => $row[17], - 'kobalt' => $row[18], - 'barium' => $row[19], - 'boron' => $row[20], - 'selenium' => $row[21], - 'kadmium' => $row[22], - 'khrom' => $row[23], - 'tembaga' => $row[24], - 'besi' => $row[25], - 'timbal' => $row[26], - 'mangan' => $row[27], - 'air_raksa' => $row[28], - 'seng' => $row[29], - 'khlorida' => $row[30], - 'sianida' => $row[31], - 'fluorida' => $row[32], - 'nitrit' => $row[33], - 'sulfat' => $row[34], - 'khlorin_bebas' => $row[35], - 'belereng' => $row[36], - 'fecal_coliform' => $row[37], - 'total_coliform' => $row[38], - 'gross' => $row[39], - 'grossb' => $row[40], + 'lokasi' => $row[1], + 'waktu' => $row[2], + 'lat' => $row[3], + 'long' => $row[4], + 'tempratur' => $row[5], + 'ph' => $row[6], + 'kekeruhan' => $row[7], + 'warna' => $row[8], + 'rasa' => $row[9], + 'bau' => $row[10], + 'tds' => $row[11], + 'bod' => $row[12], + 'cod' => $row[13], + 'do' => $row[14], + 'fosfat' => $row[15], + 'no3' => $row[16], + 'nh3' => $row[17], + 'arsen' => $row[18], + 'kobalt' => $row[19], + 'barium' => $row[20], + 'boron' => $row[21], + 'selenium' => $row[22], + 'kadmium' => $row[23], + 'khrom' => $row[24], + 'tembaga' => $row[25], + 'besi' => $row[26], + 'timbal' => $row[27], + 'mangan' => $row[28], + 'air_raksa' => $row[29], + 'seng' => $row[30], + 'khlorida' => $row[31], + 'sianida' => $row[32], + 'fluorida' => $row[33], + 'nitrit' => $row[34], + 'sulfat' => $row[35], + 'khlorin_bebas' => $row[36], + 'belereng' => $row[37], + 'fecal_coliform' => $row[38], + 'total_coliform' => $row[39], + 'gross' => $row[40], + 'grossb' => $row[41], ]); } } diff --git a/app/Imports/DatasetTable23Import.php b/app/Imports/DatasetTable23Import.php index 20c3dc7..1474dcb 100644 --- a/app/Imports/DatasetTable23Import.php +++ b/app/Imports/DatasetTable23Import.php @@ -31,40 +31,70 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null && + $row[18] === null && + $row[19] === null && + $row[20] === null && + $row[21] === null && + $row[22] === null && + $row[23] === null && + $row[24] === null && + $row[25] === null && + $row[26] === null && + $row[27] === null && + $row[28] === null + ) { return null; // baris kosong dilewati } return new DatasetTable23([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'lokasi' => $row[0], - 'waktu' => $row[1], - 'lat' => $row[2], - 'long' => $row[3], - 'lokasi_sampling' => $row[4], - 'warna' => $row[5], - 'kecerahan' => $row[6], - 'kekeruhan' => $row[7], - 'tss' => $row[8], - 'sampah' => $row[9], - 'lapisan_minyak' => $row[10], - 'tempratur' => $row[11], - 'ph' => $row[12], - 'salinitas' => $row[13], - 'do' => $row[14], - 'bod5' => $row[15], - 'cod' => $row[16], - 'amonia_total' => $row[17], - 'no2n' => $row[18], - 'no3n' => $row[19], - 'po4p' => $row[20], - 'sianida' => $row[21], - 'sulfida' => $row[22], - 'klor' => $row[23], - 'minyak_bumi' => $row[24], - 'fenol' => $row[25], - 'pestisida' => $row[26], - 'pcb' => $row[27], + 'lokasi' => $row[1], + 'waktu' => $row[2], + 'lat' => $row[3], + 'long' => $row[4], + 'lokasi_sampling' => $row[5], + 'warna' => $row[6], + 'kecerahan' => $row[7], + 'kekeruhan' => $row[8], + 'tss' => $row[9], + 'sampah' => $row[10], + 'lapisan_minyak' => $row[11], + 'tempratur' => $row[12], + 'ph' => $row[13], + 'salinitas' => $row[14], + 'do' => $row[15], + 'bod5' => $row[16], + 'cod' => $row[17], + 'amonia_total' => $row[18], + 'no2n' => $row[19], + 'no3n' => $row[20], + 'po4p' => $row[21], + 'sianida' => $row[22], + 'sulfida' => $row[23], + 'klor' => $row[24], + 'minyak_bumi' => $row[25], + 'fenol' => $row[26], + 'pestisida' => $row[27], + 'pcb' => $row[28], ]); } } diff --git a/app/Imports/DatasetTable24Import.php b/app/Imports/DatasetTable24Import.php index 0677767..dcd9855 100644 --- a/app/Imports/DatasetTable24Import.php +++ b/app/Imports/DatasetTable24Import.php @@ -31,27 +31,44 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null + ) { return null; // baris kosong dilewati } return new DatasetTable24([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'lokasi' => $row[0], - 'lat' => $row[1], - 'long' => $row[2], - 'jan' => $row[3], - 'feb' => $row[4], - 'mar' => $row[5], - 'apr' => $row[6], - 'mei' => $row[7], - 'jun' => $row[8], - 'jul' => $row[9], - 'agust' => $row[10], - 'sept' => $row[11], - 'okt' => $row[12], - 'nov' => $row[13], - 'des' => $row[14], + 'lokasi' => $row[1], + 'lat' => $row[2], + 'long' => $row[3], + 'jan' => $row[4], + 'feb' => $row[5], + 'mar' => $row[6], + 'apr' => $row[7], + 'mei' => $row[8], + 'jun' => $row[9], + 'jul' => $row[10], + 'agust' => $row[11], + 'sept' => $row[12], + 'okt' => $row[13], + 'nov' => $row[14], + 'des' => $row[15], ]); } } diff --git a/app/Imports/DatasetTable25Import.php b/app/Imports/DatasetTable25Import.php index 42cb345..1e2c0a9 100644 --- a/app/Imports/DatasetTable25Import.php +++ b/app/Imports/DatasetTable25Import.php @@ -31,20 +31,20 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null && $row[8] === null) { return null; // baris kosong dilewati } return new DatasetTable25([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'mata_air' => $row[0], - 'ledeng_pam' => $row[1], - 'sumur_bor_pompa' => $row[2], - 'sumur_tak_terlindung' => $row[3], - 'sungai' => $row[4], - 'terlindung_air' => $row[5], - 'air_kemasan' => $row[6], - 'lainnya' => $row[7], + 'mata_air' => $row[1], + 'ledeng_pam' => $row[2], + 'sumur_bor_pompa' => $row[3], + 'sumur_tak_terlindung' => $row[4], + 'sungai' => $row[5], + 'terlindung_air' => $row[6], + 'air_kemasan' => $row[7], + 'lainnya' => $row[8], ]); } } diff --git a/app/Imports/DatasetTable26Import.php b/app/Imports/DatasetTable26Import.php index 9da658c..ce9c167 100644 --- a/app/Imports/DatasetTable26Import.php +++ b/app/Imports/DatasetTable26Import.php @@ -31,7 +31,21 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null + ) { return null; // baris kosong dilewati } return new DatasetTable26([ diff --git a/app/Imports/DatasetTable27Import.php b/app/Imports/DatasetTable27Import.php index a1fa16a..85606ed 100644 --- a/app/Imports/DatasetTable27Import.php +++ b/app/Imports/DatasetTable27Import.php @@ -31,20 +31,20 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null && $row[8] === null) { return null; // baris kosong dilewati } return new DatasetTable27([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'nama_sungai' => $row[0], - 'lokasi' => $row[1], - 'panjang' => $row[2], - 'lebar_permukaan' => $row[3], - 'lebar_dasar' => $row[4], - 'kedalaman' => $row[5], - 'debit_maks' => $row[6], - 'debit_min' => $row[7], + 'nama_sungai' => $row[1], + 'lokasi' => $row[2], + 'panjang' => $row[3], + 'lebar_permukaan' => $row[4], + 'lebar_dasar' => $row[5], + 'kedalaman' => $row[6], + 'debit_maks' => $row[7], + 'debit_min' => $row[8], ]); } diff --git a/app/Imports/DatasetTable28Import.php b/app/Imports/DatasetTable28Import.php index 3e4ff5f..ad4663e 100644 --- a/app/Imports/DatasetTable28Import.php +++ b/app/Imports/DatasetTable28Import.php @@ -31,16 +31,16 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) { return null; // baris kosong dilewati } return new DatasetTable28([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'nama_danau' => $row[0], - 'lokasi' => $row[1], - 'luas' => $row[2], - 'volume' => $row[3], + 'nama_danau' => $row[1], + 'lokasi' => $row[2], + 'luas' => $row[3], + 'volume' => $row[4], ]); } } diff --git a/app/Imports/DatasetTable29Import.php b/app/Imports/DatasetTable29Import.php index 110c2d8..69e4dd7 100644 --- a/app/Imports/DatasetTable29Import.php +++ b/app/Imports/DatasetTable29Import.php @@ -31,38 +31,66 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null && + $row[18] === null && + $row[19] === null && + $row[20] === null && + $row[21] === null && + $row[22] === null && + $row[23] === null && + $row[24] === null && + $row[25] === null && + $row[26] === null + ) { return null; // baris kosong dilewati } return new DatasetTable29([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'nama_sungai' => $row[0], - 'lokasi' => $row[1], - 'titik_pantau' => $row[2], - 'koordinat_lintang' => $row[3], - 'koordinat_bujur' => $row[4], - 'waktu_sampling' => $row[5], - 'temperatur' => $row[6], - 'ph' => $row[7], - 'dhl' => $row[8], - 'tds' => $row[9], - 'tss' => $row[10], - 'do' => $row[11], - 'bod' => $row[12], - 'cod' => $row[13], - 'no2' => $row[14], - 'no3' => $row[15], - 'nh3' => $row[16], - 'klorin_bebas' => $row[17], - 'tp' => $row[18], - 'fenol' => $row[19], - 'minyak_lemak' => $row[20], - 'detergen' => $row[21], - 'fecal_coliform' => $row[22], - 'total_coliform' => $row[23], - 'sianida' => $row[24], - 'h2s' => $row[25], + 'nama_sungai' => $row[1], + 'lokasi' => $row[2], + 'titik_pantau' => $row[3], + 'koordinat_lintang' => $row[4], + 'koordinat_bujur' => $row[5], + 'waktu_sampling' => $row[6], + 'temperatur' => $row[7], + 'ph' => $row[8], + 'dhl' => $row[9], + 'tds' => $row[10], + 'tss' => $row[11], + 'do' => $row[12], + 'bod' => $row[13], + 'cod' => $row[14], + 'no2' => $row[15], + 'no3' => $row[16], + 'nh3' => $row[17], + 'klorin_bebas' => $row[18], + 'tp' => $row[19], + 'fenol' => $row[20], + 'minyak_lemak' => $row[21], + 'detergen' => $row[22], + 'fecal_coliform' => $row[23], + 'total_coliform' => $row[24], + 'sianida' => $row[25], + 'h2s' => $row[26], ]); } } diff --git a/app/Imports/DatasetTable30Import.php b/app/Imports/DatasetTable30Import.php index 430dff4..940b038 100644 --- a/app/Imports/DatasetTable30Import.php +++ b/app/Imports/DatasetTable30Import.php @@ -31,39 +31,68 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null && + $row[18] === null && + $row[19] === null && + $row[20] === null && + $row[21] === null && + $row[22] === null && + $row[23] === null && + $row[24] === null && + $row[25] === null && + $row[26] === null && + $row[27] === null + ) { return null; // baris kosong dilewati } return new DatasetTable30([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'nama' => $row[0], - 'lokasi' => $row[1], - 'waktu_sampling' => $row[2], - 'lat' => $row[3], - 'long' => $row[4], - 'temperatur' => $row[5], - 'residu_terlarut' => $row[6], - 'residu_tersuspensi' => $row[7], - 'ph' => $row[8], - 'dhl' => $row[9], - 'tds' => $row[10], - 'tss' => $row[11], - 'do' => $row[12], - 'bod' => $row[13], - 'cod' => $row[14], - 'no2' => $row[15], - 'no3' => $row[16], - 'nh3' => $row[17], - 'klorin_bebas' => $row[18], - 'tp' => $row[19], - 'fenol' => $row[20], - 'minyak_lemak' => $row[21], - 'detergen' => $row[22], - 'fecal_coliform' => $row[23], - 'total_coliform' => $row[24], - 'sianida' => $row[25], - 'h2s' => $row[26], + 'nama' => $row[1], + 'lokasi' => $row[2], + 'waktu_sampling' => $row[3], + 'lat' => $row[4], + 'long' => $row[5], + 'temperatur' => $row[6], + 'residu_terlarut' => $row[7], + 'residu_tersuspensi' => $row[8], + 'ph' => $row[9], + 'dhl' => $row[10], + 'tds' => $row[11], + 'tss' => $row[12], + 'do' => $row[13], + 'bod' => $row[14], + 'cod' => $row[15], + 'no2' => $row[16], + 'no3' => $row[17], + 'nh3' => $row[18], + 'klorin_bebas' => $row[19], + 'tp' => $row[20], + 'fenol' => $row[21], + 'minyak_lemak' => $row[22], + 'detergen' => $row[23], + 'fecal_coliform' => $row[24], + 'total_coliform' => $row[25], + 'sianida' => $row[26], + 'h2s' => $row[27], ]); } } diff --git a/app/Imports/DatasetTable31Import.php b/app/Imports/DatasetTable31Import.php index bbd404e..025edde 100644 --- a/app/Imports/DatasetTable31Import.php +++ b/app/Imports/DatasetTable31Import.php @@ -31,19 +31,19 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null) { return null; // baris kosong dilewati } return new DatasetTable31([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'kabupaten_kota' => $row[0], - 'jumlah_kk' => $row[1], - 'sendiri' => $row[2], - 'bersama' => $row[3], - 'umum' => $row[4], - 'tidak_menggunakan' => $row[5], - 'tidak_ada_fasilitas' => $row[6], + 'kabupaten_kota' => $row[1], + 'jumlah_kk' => $row[2], + 'sendiri' => $row[3], + 'bersama' => $row[4], + 'umum' => $row[5], + 'tidak_menggunakan' => $row[6], + 'tidak_ada_fasilitas' => $row[7], ]); } } diff --git a/app/Imports/DatasetTable32Import.php b/app/Imports/DatasetTable32Import.php index 2298190..a833965 100644 --- a/app/Imports/DatasetTable32Import.php +++ b/app/Imports/DatasetTable32Import.php @@ -31,29 +31,48 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null + ) { return null; // baris kosong dilewati } return new DatasetTable32([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'lokasi' => $row[0], - 'tidak_sekolah_l' => $row[1], - 'tidak_sekolah_p' => $row[2], - 'sd_l' => $row[3], - 'sd_p' => $row[4], - 'sltp_l' => $row[5], - 'sltp_p' => $row[6], - 'slta_smk_l' => $row[7], - 'slta_smk_p' => $row[8], - 'pt_l' => $row[9], - 'pt_p' => $row[10], - 's1_l' => $row[11], - 's1_p' => $row[12], - 's2_l' => $row[13], - 's2_p' => $row[14], - 's3_l' => $row[15], - 's3_p' => $row[16], + 'lokasi' => $row[1], + 'tidak_sekolah_l' => $row[2], + 'tidak_sekolah_p' => $row[3], + 'sd_l' => $row[4], + 'sd_p' => $row[5], + 'sltp_l' => $row[6], + 'sltp_p' => $row[7], + 'slta_smk_l' => $row[8], + 'slta_smk_p' => $row[9], + 'pt_l' => $row[10], + 'pt_p' => $row[11], + 's1_l' => $row[12], + 's1_p' => $row[13], + 's2_l' => $row[14], + 's2_p' => $row[15], + 's3_l' => $row[16], + 's3_p' => $row[17], ]); } } diff --git a/app/Imports/DatasetTable33Import.php b/app/Imports/DatasetTable33Import.php index ac75c47..4663219 100644 --- a/app/Imports/DatasetTable33Import.php +++ b/app/Imports/DatasetTable33Import.php @@ -31,15 +31,15 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) { return null; // baris kosong dilewati } return new DatasetTable33([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'lokasi' => $row[0], - 'jenis_penyakit' => $row[1], - 'jumlah_penderita' => $row[2], + 'lokasi' => $row[1], + 'jenis_penyakit' => $row[2], + 'jumlah_penderita' => $row[4], ]); } } diff --git a/app/Imports/DatasetTable34Import.php b/app/Imports/DatasetTable34Import.php index 59aad04..37f7dd8 100644 --- a/app/Imports/DatasetTable34Import.php +++ b/app/Imports/DatasetTable34Import.php @@ -31,16 +31,16 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null) { return null; // baris kosong dilewati } return new DatasetTable34([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'kabupaten_kota' => $row[0], - 'jumlah_rumah_tangga' => $row[1], - 'jumlah_rumah_tangga_miskin' => $row[2], - 'persentase_rumah_tangga_miskin' => $row[3], + 'kabupaten_kota' => $row[1], + 'jumlah_rumah_tangga' => $row[2], + 'jumlah_rumah_tangga_miskin' => $row[3], + 'persentase_rumah_tangga_miskin' => $row[4], ]); } } diff --git a/app/Imports/DatasetTable35Import.php b/app/Imports/DatasetTable35Import.php index f3df388..7f4bfa2 100644 --- a/app/Imports/DatasetTable35Import.php +++ b/app/Imports/DatasetTable35Import.php @@ -31,20 +31,30 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null + ) { return null; // baris kosong dilewati } return new DatasetTable35([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'sumber_pencemaran' => $row[0], - 'lokasi' => $row[1], - 'tipe_jenis_klasifikasi' => $row[2], - 'luas' => $row[3], - 'volume_limbah_padat' => $row[4], - 'volume_air_limbah' => $row[5], - 'jumlah_limbah_b3_padat' => $row[6], - 'jumlah_limbah_b3_cair' => $row[7], + 'sumber_pencemaran' => $row[1], + 'lokasi' => $row[2], + 'tipe_jenis_klasifikasi' => $row[3], + 'luas' => $row[4], + 'volume_limbah_padat' => $row[5], + 'volume_air_limbah' => $row[6], + 'jumlah_limbah_b3_padat' => $row[7], + 'jumlah_limbah_b3_cair' => $row[8], ]); } } diff --git a/app/Imports/DatasetTable36Import.php b/app/Imports/DatasetTable36Import.php index 16893ea..1bbb52d 100644 --- a/app/Imports/DatasetTable36Import.php +++ b/app/Imports/DatasetTable36Import.php @@ -31,29 +31,48 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null + ) { return null; // baris kosong dilewati } return new DatasetTable36([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'golongan' => $row[0], - 'nama_lokasi_stasuin' => $row[1], - 'lokasi_pemantauan' => $row[2], - 'lat' => $row[3], - 'long' => $row[4], - 'jan' => $row[5], - 'feb' => $row[6], - 'mar' => $row[7], - 'apr' => $row[8], - 'mei' => $row[9], - 'jun' => $row[10], - 'jul' => $row[11], - 'agust' => $row[12], - 'sept' => $row[13], - 'okt' => $row[14], - 'nov' => $row[15], - 'des' => $row[16], + 'golongan' => $row[1], + 'nama_lokasi_stasuin' => $row[2], + 'lokasi_pemantauan' => $row[3], + 'lat' => $row[4], + 'long' => $row[5], + 'jan' => $row[6], + 'feb' => $row[7], + 'mar' => $row[8], + 'apr' => $row[9], + 'mei' => $row[10], + 'jun' => $row[11], + 'jul' => $row[12], + 'agust' => $row[13], + 'sept' => $row[14], + 'okt' => $row[15], + 'nov' => $row[16], + 'des' => $row[17], ]); } } diff --git a/app/Imports/DatasetTable37Import.php b/app/Imports/DatasetTable37Import.php index b846f51..56bec2c 100644 --- a/app/Imports/DatasetTable37Import.php +++ b/app/Imports/DatasetTable37Import.php @@ -31,7 +31,26 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null && + $row[12] === null && + $row[13] === null && + $row[14] === null && + $row[15] === null && + $row[16] === null && + $row[17] === null + ) { return null; // baris kosong dilewati } return new DatasetTable37([ diff --git a/app/Imports/DatasetTable38Import.php b/app/Imports/DatasetTable38Import.php index 9e95b1e..05d0d53 100644 --- a/app/Imports/DatasetTable38Import.php +++ b/app/Imports/DatasetTable38Import.php @@ -31,23 +31,36 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ( + $row[0] === null && + $row[1] === null && + $row[2] === null && + $row[3] === null && + $row[4] === null && + $row[5] === null && + $row[6] === null && + $row[7] === null && + $row[8] === null && + $row[9] === null && + $row[10] === null && + $row[11] === null + ) { return null; // baris kosong dilewati } return new DatasetTable38([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'minyak_bakar' => $row[0], - 'minyak_diesel' => $row[1], - 'minyak_tanah' => $row[2], - 'gas' => $row[3], - 'batubara' => $row[4], - 'lpg' => $row[5], - 'briket' => $row[6], - 'kayu_bakar' => $row[7], - 'biomassa' => $row[8], - 'bensin' => $row[9], - 'solar' => $row[10], + 'minyak_bakar' => $row[1], + 'minyak_diesel' => $row[2], + 'minyak_tanah' => $row[3], + 'gas' => $row[4], + 'batubara' => $row[5], + 'lpg' => $row[6], + 'briket' => $row[7], + 'kayu_bakar' => $row[8], + 'biomassa' => $row[9], + 'bensin' => $row[10], + 'solar' => $row[11], ]); } } diff --git a/app/Imports/DatasetTable39AImport.php b/app/Imports/DatasetTable39AImport.php index 3191016..a0a3cf5 100644 --- a/app/Imports/DatasetTable39AImport.php +++ b/app/Imports/DatasetTable39AImport.php @@ -37,12 +37,12 @@ public function model(array $row) return new DatasetTable39A([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'kendaraan' => $row[0], - 'jumlah' => $row[1], - 'bensin' => $row[2], - 'solar' => $row[3], - 'gas' => $row[4], - 'listrik' => $row[5], + 'kendaraan' => $row[1], + 'jumlah' => $row[2], + 'bensin' => $row[3], + 'solar' => $row[4], + 'gas' => $row[5], + 'listrik' => $row[6], ]); } } diff --git a/app/Imports/DatasetTable39Import.php b/app/Imports/DatasetTable39Import.php index 5bc0613..2d45391 100644 --- a/app/Imports/DatasetTable39Import.php +++ b/app/Imports/DatasetTable39Import.php @@ -31,17 +31,17 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null) { return null; // baris kosong dilewati } return new DatasetTable39([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'kendaraan' => $row[0], - 'jumlah' => $row[1], - 'bensin' => $row[2], - 'solar' => $row[3], - 'gas' => $row[4], + 'kendaraan' => $row[1], + 'jumlah' => $row[2], + 'bensin' => $row[3], + 'solar' => $row[4], + 'gas' => $row[5], ]); } } diff --git a/app/Imports/DatasetTable40Import.php b/app/Imports/DatasetTable40Import.php index 7ca2cbd..15b36f8 100644 --- a/app/Imports/DatasetTable40Import.php +++ b/app/Imports/DatasetTable40Import.php @@ -31,15 +31,15 @@ public function model(array $row) { // cek kalau row kosong jangan insert - if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) { + if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) { return null; // baris kosong dilewati } return new DatasetTable40([ 'dataset_id' => $this->datasetId, 'created_by' => $this->userId, - 'kelas_jalan' => $row[0], - 'panjang_jalan' => $row[1], - 'panjang_jalan_terakhir' => $row[2], + 'kelas_jalan' => $row[1], + 'panjang_jalan' => $row[2], + 'panjang_jalan_terakhir' => $row[3], ]); } } diff --git a/public/.DS_Store b/public/.DS_Store index 25f6d57b78b8cac28f69b2baacad3bdb5a88c0cc..965c297bb454cf97ca43397658b22a955f51d384 100644 GIT binary patch literal 10244 zcmeHMU2GIp6uxI#V1^DbEvwOi;fl-Zquj?B(1JG0wD zB{qu2ApSgQ#3vJt#)!WmL48p$qDFnd24gTWQ8DpBec;I#@Z5W6n|2G)M2HyYZtgwz z=Y03h{pOszd+riKpee1_5E3SYh?uEVWGt?b=s3-DlHm6&MhS=~#3OE-<-}u_6Pu$Q zbOa0p3F3U@GXOXY>-8~JzdiM&Dv8YnzAj&-i!SdQ$Y40I~ih5N#-El%t0(9DV#rs8ShXK;~~(58ua}eOY^JqH!mY#QkT}Tpc&l%xy8RGi!_Iv$iNLERf~JYG41r;LyPEh@zxj zqsOo`&&(JtnrFBp$`Tiivn}q}-6Vl#5c5-dIu^ zy5;sY)f?~J($dy>|CCZ#v{WvUm-S^#*Nj=l_AyiUMh7%EZrHkM?;S+fusw5+X{4k= zp-k$vwS>V?>TEiEikD#}%Li1s$8 z3@mj~?=RIT@_>YzKSrHrmIJSLP+ z{r;`k&t4vmP*|&OdQK|)%;jpgBo5Fi8+F~^Ur&@G6w}U_crYQ^{CrZ*ilSH%dFCjy zu!=}Ex3r4LYQK`TJjQHsw&hFu^QD~Bk`~fIcB3m#ki+Cz@*;Vid_+!>)8s5UPkto7 zkc;FJxeNm2fe3|A1jSGSH^UvU3Rc4!*bI%(3EQ9x`e6WuU>G!b036s4DRALIco+`D zqwp9!4bQ>za1366m*6i5V8m4&e=N?Tx?&-+5CfFICT|g3$<-+@91pb_Fr(e zZOyn@6Zc=gNr#9-j!qFG=i98;R&au#s6s|K61S0SR0(7U-DPb z)Bl!Ua`dmi!g79k%zn(E6)+Gm5HJuh5HN6!7|7%Egz5c%>(&4NzecMC(*z6z4BUte zKz>WKr3s%b8w2J(B)w}7W8RIKCaO2dC4*qWuH#X%>v(L?>-bfesjeSNvwFnuo8*$g bQHQ}%^4t9D{%1fC{|E8^jLWwFWBmUoZnR0o literal 10244 zcmeHMU2GIp6uxI#+B>vErv;?2Egf0;2^47glfSgvc8QdNCEb>83tDz}hIV8+v+T@n zs|~RRe~21`(Wt=(HO4o=pTvY{OazS>iBU;Iq9p#r2Orc2AJ9Y|^xS)ANxLo4M4}ky zZtgvE&z$exJKvmhch6ly2()JPMnW_~2*t{zT8_;Oh23X$T9JIs9F%}~LOkNOTTUuz zImv0(fg)faU?5;1U?5;1VBlt80Kc&R%1)P9@6YysSKSKdN zJK{8MP9P#=&;|?y3`}Q$Ue;|*WcIUOx8qpJ{B2zY&=@8jcr-iP_J!Rzv<{vna&Td z-PSd5*c!H-N5vz9zikjj^slw-`KCNmE|#$^#~wsI!<3Oj$WD%!Bt;xzlQrUM(kTbq za9XfVW=TdXo9M{sC?e8ih@=Y;uN5F>lMIfZ#ENGqi185VO~pWM0fwTLL56XB3)hI( z|N8sbgzsSehQ`17KBhgFHP{$SIm2mu{(PBkGL^7WSu5cgEtbWMQCH!n zGLB{KbzIXk9lLKptzw|gH0!zhjEsvi?oAqfihaD_buwNXpJ6~%v#!x)-~?vQh~hME z+{AUTnZl8k;z8xp71gy%maS^oxV1UDbNAi}wX$liGGAHHn=@TAX&F5urtS^(CES!@ z>!v-}k0D}v<{{I_$dyu!+-)a@jfuIHRqDb;p-?=VG>>FW?_M=bDc3Hp3xy8oIQbq& zXDD5L3-7R5LUo~~lVItMIYp(x!hu2D_MvRKY)Wv#5ba`$13R{>q8Y@n(x z_gIOfVF}gk$`-12$h|qikx*_|nrJ1|%W-_W!?naJ|m7VdM0C zRV|@ADD8KL5*ed&1UHPlwu4gsGEvVUJ9N`?GJM5*>Ox8%8>&Uu4V{Wbhq^-DRK188 z)wFXaZc+H+#7;%SkrR(|`sd}n&6g0)D>$ukIMU!ND5)bW$#xPYadHp2pByJA$t&ax zIZHk!7s!|7JMshhnOubuD23Tj1}ZFsC2$)og=Mf7wnGy%Lj>Ak7j!@`90UUfVF*mf zfD2j3!5BOU55XgF9G-w@;W;=7&%?{`Dx8AX;SG2j-iHt1LpTqY;A{8>zJ(v*3j6}U zO0rZX)kw9{VrjXwLRu-UlA5GuX{XdDC8a@WNUUDUZ;l7@kLT-;pqwet{7qjvcb!1f z+IN+A>{jmlF9q5c70kWn&A(+q^{p)4wluX}^Ge~zdDopB5@B+LDFLBR5 z%{~83cn98v_uwp?gA4EpdNBXMu;a>|vUR4?EGQ|Fec3JJofv z9nP~a_!;cP$ zfPsL4n~eb|j>e*`xT<^}ShzrT)~;bah?Ny)H!dWHV8f5&QS#$>?6Bkb6VK1pWR e5nnehBx