Data Data Laporan Pasien Cetak

LAPORAN KUNJUNGAN PASIEN

@if($filters['date-start'] == $filters['date-end']) {{ Carbon\Carbon::parse($this->filters['date-start'])->format('d F Y') }} @else {{ Carbon\Carbon::parse($this->filters['date-start'])->format('d F Y') }} s/d {{ Carbon\Carbon::parse($this->filters['date-end'])->format('d F Y') }} @endif

@foreach ($rows as $row) @php $count = (int) count(json_decode($row->diagnosis->icdx_codes,1)); $count == 0 ? $count = 1 : $count = $count; $array = json_decode($row->diagnosis->icdx_codes,1); @endphp
@if(isset($array[0])) @else @endif @foreach ($array as $ic) @if(!$loop->first) @endif @endforeach @endforeach
No Tanggal Registrasi Rekam Medis Nama Pasien Dokter Pemeriksa Diagnosis
{{ $loop->iteration }} {{ $row->date->format('d/m/Y') }} {{ optional($row->patient)->medical_record_number }} {{ optional($row->patient)->name }} {{ optional($row->doctor)->name }} {{ optional(optional($row->diagnosis)->getICDX($array[0]))->icJenisPenyakit }} -
{{ optional(optional($row->diagnosis)->getICDX($ic))->icJenisPenyakit }}
@push('styles') @endpush