DONE: add export customer info feature, fix floating point issue in komuditi
This commit is contained in:
@@ -171,6 +171,11 @@
|
||||
<i class="fas fa-info-circle me-1"></i> Maklumat Pelanggan
|
||||
</button>
|
||||
|
||||
<button class="btn btn-info d-flex align-items-center" data-toggle="modal"
|
||||
data-target="#export_maklumat_modal" style="margin-right: 12px;">
|
||||
<i class="fas fa-print me-1"></i> Cetak Maklumat Pelanggan
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
<!-- Butang Assign Sebagai Anggota -->
|
||||
@@ -635,6 +640,33 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="export_maklumat_modal" tabindex="-1" aria-labelledby="export_maklumat_modalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-xl modal-dialog-centered" style="max-width: 920px;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="export_maklumat_modalLabel">Eksport Maklumat Pelanggan</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body p-0" style="height: 80vh; background: #e8eaed;">
|
||||
<iframe id="export_maklumat_iframe"
|
||||
src="about:blank"
|
||||
title="Maklumat Pelanggan"
|
||||
style="width: 100%; height: 100%; border: 0;"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#export_maklumat_modal').on('show.bs.modal', function () {
|
||||
$('#export_maklumat_iframe').attr('src', '{{ route('customer.print.maklumat', ['noic' => $noic]) }}');
|
||||
});
|
||||
$('#export_maklumat_modal').on('hidden.bs.modal', function () {
|
||||
$('#export_maklumat_iframe').attr('src', 'about:blank');
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="modal fade" id="opt_modal" tabindex="-1" aria-labelledby="opt_modalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content">
|
||||
|
||||
Reference in New Issue
Block a user