main
Ilham Wara Nugroho 2025-08-29 10:47:45 +07:00
parent 4388f93635
commit 319591f97f
70 changed files with 678 additions and 99 deletions

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable10([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'luas_lokasi' => $row[1],
'persentase_tutupan' => $row[2],
'kerapatan' => $row[3],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable11([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'luas' => $row[1],
'persentase_area_kerusakan' => $row[2],
]);
}
}

View File

@ -30,8 +30,16 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable12([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'golongan' => $row[0],
'lokasi' => $row[1],
'luas_tutupan' => $row[2],
'sangat_baik' => $row[3],
'baik' => $row[4],
'sedang' => $row[5],
'rusak' => $row[6],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable13([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'jenis_penggunaan_baru' => $row[0],
'luas_lama' => $row[1],
'luas_baru' => $row[2],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable14([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'jenis_pemanfaatan_lahan' => $row[0],
'jumlah' => $row[1],
'skala_usaha' => $row[2],
'luas' => $row[3],
'keterangan' => $row[4],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable15([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'jenis_bahan_galian' => $row[1],
'nama_perusahaan' => $row[2],
'luas_penambangan' => $row[3],
'luas_area_produksi' => $row[4],
'produksi' => $row[5],
]);
}
}

View File

@ -30,8 +30,17 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable16([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'lokasi_penanaman' => $row[1],
'penghijauan_target' => $row[2],
'penghijauan_luas_realisasi' => $row[3],
'penghijauan_realisasi_jumlah_pohon' => $row[4],
'penghijauan_jumlah_pohon_hidup' => $row[5],
'reboisasi_target' => $row[6],
'reboisasi_luas_realisasi' => $row[7],
'reboisasi_realisasi_jumlah_pohon' => $row[8],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable17([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'lokasi' => $row[1],
'luas' => $row[2],
'kedalaman_maksimal' => $row[3],
'persentase_kerusakan' => $row[4],
'penyebab_kerusakan' => $row[5],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable18([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'lokasi' => $row[1],
'jumlah_produksi' => $row[2],
'jumlah_luas' => $row[3],
'keterangan' => $row[4],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable19([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'jumlah_unit' => $row[1],
'luas' => $row[2],
'keterangan' => $row[3],
]);
}
}

View File

@ -30,8 +30,17 @@ class DatasetTable1Import implements ToModel,WithStartRow
public function model(array $row)
{
return new DatasetTable1([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_kawasan_1' => $row[0],
'nama_kawasan_2' => $row[1],
'nama_kawasan_3' => $row[2],
'nama_kawasan_4' => $row[3],
'luas_kawasan' => $row[4],
'tutupan_lahan_vegetasi' => $row[5],
'tutupan_lahan_area_terbangun' => $row[6],
'tutupan_lahan_tanah_terbuka' => $row[7],
'tutupan_lahan_badan_air' => $row[8],
]);
}
}

View File

@ -0,0 +1,40 @@
<?php
namespace App\Imports;
use App\Models\Dataset\DatasetTable20;
use Maatwebsite\Excel\Concerns\ToModel;
use Maatwebsite\Excel\Concerns\WithStartRow;
class DatasetTable20Import implements ToModel,WithStartRow
{
/**
* @param array $row
*
* @return \Illuminate\Database\Eloquent\Model|null
*/
protected $datasetId;
protected $userId;
public function __construct($datasetId,$userId)
{
$this->datasetId = $datasetId;
$this->userId = $userId;
}
public function startRow(): int
{
return 6;
}
public function model(array $row)
{
return new DatasetTable20([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_spesies' => $row[0],
'bagian_diperdagangkan' => $row[1],
'status_cites' => $row[2],
]);
}
}

View File

@ -30,8 +30,16 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable21([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,49 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable22([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,36 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable23([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,23 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable24([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,16 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable25([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,21 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable26([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi_pemantauan' => $row[0],
'latitude' => $row[1],
'longitude' => $row[2],
'waktu_pemantauan' => $row[3],
'ph' => $row[4],
'dhl' => $row[5],
'so4' => $row[6],
'no3' => $row[7],
'cr' => $row[8],
'nh4' => $row[9],
'na' => $row[10],
'ca2' => $row[11],
'mg2' => $row[12],
]);
}
}

View File

@ -30,8 +30,17 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable27([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable28([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_danau' => $row[0],
'lokasi' => $row[1],
'luas' => $row[2],
'volume' => $row[3],
]);
}
}

View File

@ -30,8 +30,34 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable29([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,16 @@ protected $userId;
public function model(array $row)
{
return new DatasetTable2([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'luas_lahan_non_pertanian' => $row[1],
'luas_lahan_sawah' => $row[2],
'luas_lahan_kering' => $row[3],
'luas_lahan_perkebunan' => $row[4],
'luas_lahan_hutan' => $row[5],
'luas_lahan_badan_air' => $row[6],
'created_by' => $row[7],
]);
}
}

View File

@ -30,8 +30,35 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable30([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,15 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable31([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,25 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable32([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable33([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'jenis_penyakit' => $row[1],
'jumlah_penderita' => $row[2],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable34([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,16 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable35([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,25 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable36([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,26 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable37([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'lat' => $row[1],
'long' => $row[2],
'lama_pengukuran' => $row[3],
'so2' => $row[4],
'co' => $row[5],
'no2' => $row[6],
'o3' => $row[7],
'hc' => $row[8],
'pm10' => $row[9],
'pm25' => $row[10],
'tsp' => $row[11],
'pb' => $row[12],
'dustfall' => $row[13],
'total_fluorides' => $row[14],
'fluor_index' => $row[15],
'chlorine_dioxide' => $row[16],
'sulphat_index' => $row[17],
]);
}
}

View File

@ -30,8 +30,19 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable38([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'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],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable39A([
'dataset_id' => $this->datasetId,
'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],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable39([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kendaraan' => $row[0],
'jumlah' => $row[1],
'bensin' => $row[2],
'solar' => $row[3],
'gas' => $row[4],
]);
}
}

View File

@ -30,8 +30,10 @@ protected $userId;
public function model(array $row)
{
return new DatasetTable3([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'fungsi_hutan' => $row[0],
'luas' => $row[1],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable40([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kelas_jalan' => $row[0],
'panjang_jalan' => $row[1],
'panjang_jalan_terakhir' => $row[2],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable41A([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'jenis_dokumen' => $row[0],
'kegiatan' => $row[1],
'komisi_penilai' => $row[2],
'pemrakarsa' => $row[3],
'dokumen' => $row[4],
'nomor_rekomendasi' => $row[5],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable41([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'jenis_dokumen' => $row[0],
'kegiatan' => $row[1],
'komisi_penilai' => $row[2],
'pemrakarsa' => $row[3],
'dokumen' => $row[4],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable42([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_perusahaan' => $row[0],
'lokasi' => $row[1],
'jenis_kegiatan' => $row[2],
'jenis_izin' => $row[3],
'nomor_sk' => $row[4],
'dokumen' => $row[5],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable43A([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'nama_perusahaan' => $row[1],
'waktu' => $row[2],
'hasil_pengawasan' => $row[3],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable43B([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'nama_perusahaan' => $row[1],
'waktu' => $row[2],
'hasil_pengawasan' => $row[3],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable43([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'nama_perusahaan' => $row[1],
'waktu' => $row[2],
'hasil_pengawasan' => $row[3],
]);
}
}

View File

@ -30,8 +30,15 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable44A([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kecamatan' => $row[0],
'lokasi' => $row[1],
'jenis_bencana' => $row[2],
'jumlah_area_terdampak' => $row[3],
'jumlah_korban_mengungsi' => $row[4],
'jumlah_korban_meninggal' => $row[5],
'perkiraan_kerugian' => $row[6],
]);
}
}

View File

@ -30,8 +30,22 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable44B([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'jumlah_kejadian' => $row[1],
'terdampak' => $row[2],
'kecamatan' => $row[3],
'kelurahan' => $row[4],
'rt' => $row[5],
'rw' => $row[6],
'kk' => $row[7],
'jiwa' => $row[8],
'pengungsi' => $row[9],
'lokasi_pengungsian' => $row[10],
'korban_jiwa_luka' => $row[11],
'keterangan' => $row[12],
'kerugian' => $row[13],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable44([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kecamatan' => $row[0],
'lokasi' => $row[1],
'jenis_bencana' => $row[2],
'jumlah_area_terdampak' => $row[3],
'jumlah_korban_mengungsi' => $row[4],
'jumlah_korban_meninggal' => $row[5],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable45([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'luas' => $row[1],
'jumlah_penduduk' => $row[2],
'pertumbuhan_penduduk' => $row[3],
'kepadatan_penduduk' => $row[4],
]);
}
}

View File

@ -30,8 +30,15 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable46([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'lokasi' => $row[1],
'nama_tpa' => $row[2],
'jenis_tpa' => $row[3],
'luas_tpa' => $row[4],
'kapasitas' => $row[5],
'volume_eksisting' => $row[6],
]);
}
}

View File

@ -30,8 +30,15 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable47([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'lokasi' => $row[1],
'jumlah_penduduk' => $row[2],
'timbulan_sampah' => $row[3],
'status_open_dumping' => $row[4],
'status_sanitary_landfill' => $row[5],
'status_controlled_landfill' => $row[6],
]);
}
}

View File

@ -30,8 +30,18 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable48A([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'nama_bank_sampah' => $row[1],
'sk' => $row[2],
'jumlah_sampah' => $row[3],
'status' => $row[4],
'kelurahan' => $row[5],
'rw' => $row[6],
'jumlah_penabung' => $row[7],
'jumlah_karyawan' => $row[8],
'omset' => $row[9],
]);
}
}

View File

@ -30,8 +30,17 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable48([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'nama_bank_sampah' => $row[1],
'sk' => $row[2],
'jumlah_sampah' => $row[3],
'status' => $row[4],
'wilayah_pelayanan' => $row[5],
'jumlah_penabung' => $row[6],
'jumlah_karyawan' => $row[7],
'omset' => $row[8],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable49([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_kegiatan' => $row[0],
'lokasi_kegiatan' => $row[1],
'pelaksana_kegiatan' => $row[2],
]);
}
}

View File

@ -30,8 +30,16 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable50A([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kanal_aduan' => $row[0],
'nama_skpd' => $row[1],
'kategori' => $row[2],
'rincian_masalah' => $row[3],
'bobot' => $row[4],
'tgl_masuk' => $row[5],
'tgl_tl' => $row[6],
'status' => $row[7],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable50([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'pihak_mengadu' => $row[0],
'masalah' => $row[1],
'proses_pengaduan' => $row[2],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable51([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_lsm' => $row[0],
'lokasi' => $row[1],
'akta_pendirian' => $row[2],
'alamat' => $row[3],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable52([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'tingkat_pendidikan' => $row[0],
'lakilaki' => $row[1],
'perempuan' => $row[2],
'jumlah' => $row[3],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable53([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_instansi' => $row[0],
'jabatan_fungsional' => $row[1],
'laki_laki' => $row[2],
'perempuan' => $row[3],
'staf_diklat_l' => $row[4],
'staf_diklat_p' => $row[5],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable54([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama' => $row[0],
'nama_penghargaan' => $row[1],
'pemberi_penghargaan' => $row[2],
'tahun_penghargaan' => $row[3],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable55([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_kegiatan' => $row[0],
'instansi' => $row[1],
'kelompok_sasaran' => $row[2],
'waktu_pelaksanaan' => $row[3],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable56([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'uraian' => $row[0],
'satu_tahun_sebelumnya' => $row[1],
'dua_tahun_sebelumnya' => $row[2],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable57([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'uraian' => $row[0],
'satu_tahun_sebelumnya' => $row[1],
'dua_tahun_sebelumnya' => $row[2],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable58([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'jenis_produk_hukum_bidang_lingkungan_hidup' => $row[0],
'jenis_produk_hukum_bidang_kehutanan' => $row[1],
'nomor_tanggal' => $row[2],
'tentang' => $row[3],
'dokumen' => $row[4],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable59([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'sumber' => $row[0],
'peruntukan_anggaran' => $row[1],
'jumlah_anggaran' => $row[2],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable5([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_perusahaan' => $row[0],
'sk' => $row[1],
'jenis_satwa' => $row[2],
]);
}
}

View File

@ -30,8 +30,11 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable60A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'sumber' => $row[0],
'jumlah_2022' => $row[1],
'jumlah_2023' => $row[2],
]);
}
}

View File

@ -30,8 +30,10 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable60([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'sumber' => $row[0],
'jumlah' => $row[1],
]);
}
}

View File

@ -30,8 +30,12 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable61([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'inovasi' => $row[1],
'deskripsi_inovasi' => $row[2],
'dasar_hukum_inovasi' => $row[3],
]);
}
}

View File

@ -30,8 +30,19 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable6([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'kritis_hutan' => $row[1],
'kritis_non_hutan' => $row[2],
'sangat_kritis_hutan' => $row[3],
'sangat_kritis_non_hutan' => $row[4],
'potensial_kritis_hutan' => $row[5],
'potensial_kritis_non_hutan' => $row[6],
'agak_kritis_hutan' => $row[7],
'agak_kritis_non_hutan' => $row[8],
'tidak_agak_kritis_hutan' => $row[9],
'tidak_agak_kritis_non_hutan' => $row[10],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable7([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'tebel_tanah' => $row[1],
'ambang_kritis_erosi' => $row[2],
'besaran_erosi' => $row[3],
'status' => $row[4],
]);
}
}

View File

@ -30,8 +30,13 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable8([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'parameter' => $row[1],
'ambang_kritis' => $row[2],
'hasil_pengamatan' => $row[3],
'status' => $row[4],
]);
}
}

View File

@ -30,8 +30,14 @@ public function startRow(): int
public function model(array $row)
{
return new DatasetTable9([
'dataset_id' => $this->datasetId,
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'parameter' => $row[1],
'ambang_kritis' => $row[2],
'hasil_pengamatan' => $row[3],
'melebihi' => $row[4],
]);
}
}

View File

@ -266,18 +266,23 @@ class DatasetRepository implements DatasetRepositoryInterface
$modelClass::where('dataset_id',$masterModel->DatasetId)->delete();
}
}else{
$masterModel = new Dataset;
$masterModel->instansi_id = decode_id($data['instansi_id']);
$masterModel->template_id = decode_id($data['template_id']);
$masterModel->tahun = $data['tahun'];
$masterModel->name = $data['name'];
$masterModel->publik = $data['publik'];
$masterModel->tags = json_encode($data['tags']);
$masterModel->data = json_encode($json);
$masterModel->file = $filePath;
$masterModel->deskripsi = $data['deskripsi'];
$masterModel->created_by = auth()->user()->id;
$masterModel->save();
$masterModel = Dataset::updateOrCreate([
'instansi_id' => decode_id($data['instansi_id']),
'template_id' => decode_id($data['template_id']),
'tahun' => $data['tahun'],
],[
'instansi_id' => decode_id($data['instansi_id']),
'template_id' => decode_id($data['template_id']),
'tahun' => $data['tahun'],
'name' => $data['name'],
'publik' => $data['publik'],
'tags' => json_encode($data['tags']),
'data' => json_encode($json),
'file' => $filePath,
'deskripsi' => $data['deskripsi'],
'created_by' => auth()->user()->id,
]);
}
if(@$file){