+ @if(isset($jsonantibiotik[$data->id]) && !empty($jsonantibiotik[$data->id]))
+ @foreach($jsonantibiotik[$data->id] as $antibiotic)
+
{{ $antibiotic->interpretation }}
+ @endforeach
+ @endif
+
+ @endforeach
+ @endif
+
+
+
+
+
+
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/admin/rekapantibiotik.blade.php b/resources/views/admin/rekapantibiotik.blade.php
new file mode 100644
index 00000000..75d1dd43
--- /dev/null
+++ b/resources/views/admin/rekapantibiotik.blade.php
@@ -0,0 +1,68 @@
+@extends('base.layout')
+@section('content')
+
+
+
+
+
+
Rekapitulasi Data Bulan {{$bulan}} Tahun {{$tahun}}
+
+
+
+
+
+
No
+
Status
+
No.RM
+
Name
+
Order
+
Gender
+
Date
+
Urgensi
+
Comming From
+
Code
+
Spesimen
+
Finish
+ @if(isset($jsonantibiotik) && !empty($jsonantibiotik))
+ @foreach($jsonantibiotik->first() as $antibiotic)
+
+ @if(isset($jsonantibiotik[$data->id]) && !empty($jsonantibiotik[$data->id]))
+ @foreach($jsonantibiotik[$data->id] as $antibiotic)
+
{{ $antibiotic->interpretation }}
+ @endforeach
+ @endif
+
+ @endforeach
+ @endif
+
+
+
+
+
+
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/admin/report.blade.php b/resources/views/admin/report.blade.php
index 33b0fb0b..e6ed8127 100644
--- a/resources/views/admin/report.blade.php
+++ b/resources/views/admin/report.blade.php
@@ -34,7 +34,8 @@
-
+
+
@@ -220,16 +221,14 @@ $(document).ready(function () {
$('#btnrekap').click(function () {
var bulan = document.getElementById('bulan').value;
var tahun = document.getElementById('tahun').value;
- var token = document.getElementById('token').value;
- $.post('{{ route("rekapPeriksa") }}', { bulan: bulan, tahun: tahun, _token: token },
- function(data){
- $('#tabel_cetak').html(data);
- $("#tabel_cetak").btechco_excelexport({
- containerid: "tabel_cetak"
- , datatype: $datatype.Table
- });
- return false;
- });
+ var url = '{{url('/')}}/rekapantibiotik?bulan='+bulan+'?tahun='+tahun;
+ window.location.href = url;
+ });
+ $('#btnrekapglassreport').click(function () {
+ var bulan = document.getElementById('bulan').value;
+ var tahun = document.getElementById('tahun').value;
+ var url = '{{url('/')}}/glassreport?bulan='+bulan+'?tahun='+tahun;
+ window.location.href = url;
});
$('#btndatereport').click(function () {
var bulan = 'pertanggal';
diff --git a/routes/web.php b/routes/web.php
index cf021998..3e4155a7 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -121,7 +121,9 @@ Route::group(['middleware' => 'project.ipg'], function() {
Route::get('report', [ReportController::class, 'index']);
Route::post('report', [ReportController::class, 'report'])->name('reportPeriksa');
Route::post('rekapperiksa', [ReportController::class, 'rekapPeriksa'])->name('rekapPeriksa');
-
+ Route::get('rekapantibiotik', [ReportController::class, 'genRekapAntibiotik']);
+ Route::get('glassreport', [ReportController::class, 'genGlassReport']);
+
Route::get('list', [ListController::class, 'index']);
Route::get('list/getlist', [ListController::class, 'getList'])->name('getList');
Route::get('list/getlistterjadwal', [ListController::class, 'getListterjadwal'])->name('getListterjadwal');