-
Notifications
You must be signed in to change notification settings - Fork 123
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
Issue #399 export data penduduk #979
Conversation
@@ -28,6 +28,11 @@ | |||
<button type="button" class="btn btn-warning btn-sm" title="Unggah Data"><i class="fa fa-upload"></i> 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> Export</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ganti title sesuai fungsinya
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baik akan saya update
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
app/Exports/ExportPenduduk.php
Outdated
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bisa gunakan elequent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baik akan saya update
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
38a6549
to
ab5dd98
Compare
Deskripsi
export
di bagian halaman pendudukxlsx
Related Issue
#399