83 lines
4.3 KiB
PHP
83 lines
4.3 KiB
PHP
@php
|
|
use App\RekapAntibiotik;
|
|
use App\SiraB;
|
|
$antibiotikData = RekapAntibiotik::whereIn('orderid', $orderbydate->pluck('id'))->get()->keyBy('orderid');
|
|
$siraBData = SiraB::whereIn('antibiotik', $jsonantibiotik ?? [])->orWhereIn('subantibiotik', $jsonantibiotik ?? [])->get()->keyBy('antibiotik');
|
|
@endphp
|
|
|
|
@extends('base.layout')
|
|
@section('content')
|
|
<div class="wrapper">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="card-box ribbon-box">
|
|
<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">
|
|
<thead>
|
|
<tr>
|
|
<th>ID Rumah Sakit</th>
|
|
<th>Nama Pasien</th>
|
|
<th>No Rekam Medis</th>
|
|
<th>Jenis Kelamin</th>
|
|
<th>Tanggal Lahir</th>
|
|
<th>Usia</th>
|
|
<th>Ruang Rawat</th>
|
|
<th>Tanggal Pasien Masuk</th>
|
|
<th>Tanggal Pengambilan Sample</th>
|
|
<th>Specimen Origin (Comunity Origin / Hospital Origin)</th>
|
|
<th>Jenis Spesimen</th>
|
|
<th>Nama Spesies Bakteri</th>
|
|
<th>ESBL</th>
|
|
<th>MRSA</th>
|
|
@if(!empty($jsonantibiotik))
|
|
@foreach($jsonantibiotik as $antibiotic)
|
|
<th>{{ $antibiotic }}</th>
|
|
@endforeach
|
|
@endif
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($orderbydate ?? [] as $data)
|
|
<tr>
|
|
<td></td>
|
|
<td>{{ $data->nmpasien }}</td>
|
|
<td>{{ $data->noregister }}</td>
|
|
<td>{{ $data->jkpasien }}</td>
|
|
<td>{{ $data->tgllahirpasien }}</td>
|
|
<td>{{ $data->usia }}</td>
|
|
<td>{{ $data->asalpasien }}</td>
|
|
<td>{{ $data->mulai }}</td>
|
|
<td>{{ $data->daftar }}</td>
|
|
<td>{{ $data->nm_spesimen }}</td>
|
|
<td>{{ $data->nm_spesimen }}</td>
|
|
<td>{{ $data->updated_at }}</td>
|
|
@if(!empty($jsonantibiotik))
|
|
@foreach($jsonantibiotik as $antibiotic)
|
|
@php
|
|
$cekapakahada = $antibiotikData[$data->id] ?? null;
|
|
$intepretasi = $cekapakahada->interpretation ?? '';
|
|
@endphp
|
|
<td>{{ $intepretasi }}</td>
|
|
@endforeach
|
|
@endif
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="14" class="text-center">Tidak ada data yang tersedia.</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="card-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">
|
|
@endsection |