01-03-2025

This commit is contained in:
Duidev Software House
2025-03-01 14:10:05 +07:00
parent 0fb1978a0e
commit 52893f4eb9
8 changed files with 2591 additions and 1721 deletions
+26 -5
View File
@@ -15,7 +15,9 @@
<div class="ribbon ribbon-danger">Rekapitulasi Data Bulan {{$bulan}} Tahun {{$tahun}}</div>
<p></p>
<div class="table-responsive">
<table id="datatable" class="table table-bordered display">
<button type="button" class="btn btn-primary" id="btnexport"><i class="fa fa-print"></i> Export</button>
<table id="glassreport" class="table table-bordered display">
<thead>
<tr>
<th>ID Rumah Sakit</th>
@@ -42,7 +44,7 @@
<tbody>
@forelse($orderbydate ?? [] as $data)
<tr>
<td></td>
<td>&nbsp;</td>
<td>{{ $data->nmpasien }}</td>
<td>{{ $data->noregister }}</td>
<td>{{ $data->jkpasien }}</td>
@@ -51,9 +53,11 @@
<td>{{ $data->asalpasien }}</td>
<td>{{ $data->mulai }}</td>
<td>{{ $data->daftar }}</td>
<td>&nbsp;</td>
<td>{{ $data->kd_spesimen }}</td>
<td>{{ $data->nm_spesimen }}</td>
<td>{{ $data->nm_spesimen }}</td>
<td>{{ $data->updated_at }}</td>
<td>{{ $data->id_esbl }}</td>
<td>{{ $data->id_mrsa }}</td>
@if(!empty($jsonantibiotik))
@foreach($jsonantibiotik as $antibiotic)
@php
@@ -80,4 +84,21 @@
</div>
</div>
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">
@endsection
@endsection
@push('script')
<!-- SIGNATURE PAD -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('btnexport').addEventListener('click', function() {
var table = document.getElementById('glassreport');
if (table) {
var wb = XLSX.utils.table_to_book(table, { sheet: "Report" });
XLSX.writeFile(wb, "GlassReport_{{$bulan}}_Tahun{{$tahun}}.xlsx");
} else {
console.error('Tabel dengan ID "tblkeaktifankelas" tidak ditemukan.');
}
});
});
</script>
@endpush