Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #399 export data penduduk #979

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

anangnovriadi
Copy link
Contributor

@anangnovriadi anangnovriadi commented Jul 5, 2024

Deskripsi

  • fitur ini memungkinkan bisa export data penduduk
  • terdapat tombol export di bagian halaman penduduk
  • format export file adalah xlsx

Related Issue
#399

export

@anangnovriadi anangnovriadi changed the title [Feature] export data penduduk [Issue] export data penduduk Jul 5, 2024
@anangnovriadi anangnovriadi changed the title [Issue] export data penduduk Issue #399 export data penduduk Jul 5, 2024
@@ -28,6 +28,11 @@
<button type="button" class="btn btn-warning btn-sm" title="Unggah Data"><i class="fa fa-upload"></i>&ensp;Impor</button>
</a>
</div>
<div class="btn-group" style="padding-left: 2.5px;">
<a href="{{ route('data.penduduk.export-excel') }}">
<button type="button" class="btn btn-primary btn-sm" title="Unggah Data"><i class="fa fa-download"></i>&ensp;Export</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ganti title sesuai fungsinya

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baik akan saya update

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andifahruddinakas sudah saya update, mohon di review kembali

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andifahruddinakas sudah saya update, mohon di review kembali

Comment on lines 21 to 39
return DB::table('das_penduduk')
->leftJoin('das_data_desa', 'das_penduduk.desa_id', '=', 'das_data_desa.desa_id')
->leftJoin('ref_pendidikan_kk', 'das_penduduk.pendidikan_kk_id', '=', 'ref_pendidikan_kk.id')
->leftJoin('ref_kawin', 'das_penduduk.status_kawin', '=', 'ref_kawin.id')
->leftJoin('ref_pekerjaan', 'das_penduduk.pekerjaan_id', '=', 'ref_pekerjaan.id')
->select([
'das_penduduk.id',
'das_penduduk.nama',
'das_penduduk.nik',
'das_penduduk.no_kk',
'das_data_desa.nama as nama_desa',
'das_penduduk.alamat',
'ref_pendidikan_kk.nama as pendidikan',
'das_penduduk.tanggal_lahir',
'ref_pekerjaan.nama as pekerjaan',
'ref_kawin.nama as status_kawin',
])
->where('status_dasar', 1)
->get();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bisa gunakan elequent

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baik akan saya update

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andifahruddinakas sudah saya update, mohon di review kembali

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andifahruddinakas sudah saya update, mohon di review kembali

@andifahruddinakas andifahruddinakas changed the base branch from master to dev July 8, 2024 12:21
@andifahruddinakas andifahruddinakas merged commit 239b836 into OpenSID:dev Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants