main
Ilham Wara Nugroho 2025-09-02 09:25:25 +07:00
parent 319591f97f
commit 57495c5883
75 changed files with 434 additions and 91 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -29,13 +29,18 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable10([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'luas_lokasi' => $row[1],
'persentase_tutupan' => $row[2],
'kerapatan' => $row[3],
'lokasi' => $row[1],
'luas_lokasi' => $row[2],
'persentase_tutupan' => $row[3],
'kerapatan' => $row[4],
]);
}

View File

@ -29,12 +29,17 @@ public function startRow(): int
public function model(array $row)
{
// cek kalau row kosong jangan insert
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable11([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'lokasi' => $row[0],
'luas' => $row[1],
'persentase_area_kerusakan' => $row[2],
'lokasi' => $row[1],
'luas' => $row[2],
'persentase_area_kerusakan' => $row[3],
]);
}
}

View File

@ -29,17 +29,20 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable12([
'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

@ -29,12 +29,17 @@ public function startRow(): int
public function model(array $row)
{
// cek kalau row kosong jangan insert
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable13([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'jenis_penggunaan_baru' => $row[0],
'luas_lama' => $row[1],
'luas_baru' => $row[2],
'jenis_penggunaan_baru' => $row[1],
'luas_lama' => $row[2],
'luas_baru' => $row[3],
]);
}
}

View File

@ -29,14 +29,19 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable14([
'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],
'jenis_pemanfaatan_lahan' => $row[1],
'jumlah' => $row[2],
'skala_usaha' => $row[3],
'luas' => $row[4],
'keterangan' => $row[5],
]);
}
}

View File

@ -29,15 +29,20 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable15([
'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],
'lokasi' => $row[1],
'jenis_bahan_galian' => $row[2],
'nama_perusahaan' => $row[3],
'luas_penambangan' => $row[4],
'luas_area_produksi' => $row[5],
'produksi' => $row[6],
]);
}
}

View File

@ -29,18 +29,23 @@ public function startRow(): int
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 && $row[7] === null && $row[8] === null && $row[9] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable16([
'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],
'kabupaten_kota' => $row[1],
'lokasi_penanaman' => $row[2],
'penghijauan_target' => $row[3],
'penghijauan_luas_realisasi' => $row[4],
'penghijauan_realisasi_jumlah_pohon' => $row[5],
'penghijauan_jumlah_pohon_hidup' => $row[6],
'reboisasi_target' => $row[7],
'reboisasi_luas_realisasi' => $row[8],
'reboisasi_realisasi_jumlah_pohon' => $row[9],
]);
}
}

View File

@ -29,15 +29,20 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable17([
'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],
'kabupaten_kota' => $row[1],
'lokasi' => $row[2],
'luas' => $row[3],
'kedalaman_maksimal' => $row[4],
'persentase_kerusakan' => $row[5],
'penyebab_kerusakan' => $row[6],
]);
}
}

View File

@ -29,14 +29,19 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable18([
'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],
'kabupaten_kota' => $row[1],
'lokasi' => $row[2],
'jumlah_produksi' => $row[3],
'jumlah_luas' => $row[4],
'keterangan' => $row[5],
]);
}
}

View File

@ -29,13 +29,18 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable19([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'kabupaten_kota' => $row[0],
'jumlah_unit' => $row[1],
'luas' => $row[2],
'keterangan' => $row[3],
'kabupaten_kota' => $row[1],
'jumlah_unit' => $row[2],
'luas' => $row[3],
'keterangan' => $row[4],
]);
}
}

View File

@ -29,6 +29,11 @@ class DatasetTable1Import implements ToModel,WithStartRow
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 && $row[7] === null && $row[8] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable1([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,12 +29,17 @@ public function startRow(): int
public function model(array $row)
{
// cek kalau row kosong jangan insert
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable20([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_spesies' => $row[0],
'bagian_diperdagangkan' => $row[1],
'status_cites' => $row[2],
'nama_spesies' => $row[1],
'bagian_diperdagangkan' => $row[2],
'status_cites' => $row[3],
]);
}
}

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable21([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable22([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable23([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable24([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable25([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable26([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable27([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable28([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable29([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,17 +29,22 @@ protected $userId;
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 && $row[7] === null && $row[8] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable2([
'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],
'kabupaten_kota' => $row[1],
'luas_lahan_non_pertanian' => $row[2],
'luas_lahan_sawah' => $row[3],
'luas_lahan_kering' => $row[4],
'luas_lahan_perkebunan' => $row[5],
'luas_lahan_hutan' => $row[6],
'luas_lahan_badan_air' => $row[7],
'created_by' => $row[8],
]);
}
}

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable30([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable31([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable32([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable33([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable34([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable35([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable36([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable37([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable38([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable39A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable39([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,11 +29,16 @@ protected $userId;
public function model(array $row)
{
// cek kalau row kosong jangan insert
if ($row[0] === null && $row[1] === null && $row[2] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable3([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'fungsi_hutan' => $row[0],
'luas' => $row[1],
'fungsi_hutan' => $row[1],
'luas' => $row[2],
]);
}
}

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable40([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable41A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable41([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable42([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable43A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable43B([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable43([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable44A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable44B([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable44([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable45([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable46([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable47([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable48A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable48([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable49([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,7 +29,8 @@ class DatasetTable4Import implements ToModel,WithStartRow
public function model(array $row)
{
// cek kalau row kosong jangan insert
// 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) {
return null; // baris kosong dilewati
}

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable50A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable50([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable51([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable52([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable53([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable54([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable55([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable56([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable57([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable58([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable59([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,12 +29,17 @@ public function startRow(): int
public function model(array $row)
{
// cek kalau row kosong jangan insert
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable5([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,
'nama_perusahaan' => $row[0],
'sk' => $row[1],
'jenis_satwa' => $row[2],
'nama_perusahaan' => $row[1],
'sk' => $row[2],
'jenis_satwa' => $row[3],
]);
}
}

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable60A([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable60([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,6 +29,11 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable61([
'dataset_id' => $this->datasetId,
'created_by' => $this->userId,

View File

@ -29,20 +29,25 @@ public function startRow(): int
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 && $row[7] === null && $row[8] === null && $row[9] === null && $row[10] === null && $row[11] === null) {
return null; // baris kosong dilewati
}
return new DatasetTable6([
'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],
'kabupaten_kota' => $row[1],
'kritis_hutan' => $row[2],
'kritis_non_hutan' => $row[3],
'sangat_kritis_hutan' => $row[4],
'sangat_kritis_non_hutan' => $row[5],
'potensial_kritis_hutan' => $row[6],
'potensial_kritis_non_hutan' => $row[7],
'agak_kritis_hutan' => $row[8],
'agak_kritis_non_hutan' => $row[9],
'tidak_agak_kritis_hutan' => $row[10],
'tidak_agak_kritis_non_hutan' => $row[11],
]);
}
}

View File

@ -29,14 +29,19 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable7([
'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],
'lokasi' => $row[1],
'tebel_tanah' => $row[2],
'ambang_kritis_erosi' => $row[3],
'besaran_erosi' => $row[4],
'status' => $row[5],
]);
}
}

View File

@ -29,14 +29,19 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable8([
'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],
'lokasi' => $row[1],
'parameter' => $row[2],
'ambang_kritis' => $row[3],
'hasil_pengamatan' => $row[4],
'status' => $row[5],
]);
}
}

View File

@ -29,14 +29,19 @@ public function startRow(): int
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) {
return null; // baris kosong dilewati
}
return new DatasetTable9([
'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],
'lokasi' => $row[1],
'parameter' => $row[2],
'ambang_kritis' => $row[3],
'hasil_pengamatan' => $row[4],
'melebihi' => $row[5],
]);
}

View File

@ -14,7 +14,6 @@ return new class extends Migration
Schema::create('dataset_table12', function (Blueprint $table) {
$table->id('DatasetTable12Id');
$table->integer('dataset_id');
$table->string('golongan')->nullable();
$table->string('lokasi')->nullable();
$table->float('luas_tutupan')->default(0);
$table->float('sangat_baik')->default(0);

Binary file not shown.

Binary file not shown.

Binary file not shown.