@section('optional_css') @endsection @section('optional_js') @endsection

{{ __('Ruangan PCR') }}

@if(session('success')) {{ session('success') }} @endif @if(session('delete')) {{ session('delete') }} @endif

#{{ $pcrroom->kode }}

{{ __('Batch Number') }}
{{ $pcrroom->nomor_ruangan }}
{{ __('Tanggal') }}
{{ $pcrroom->tanggal }}
{{ __('Penanggung Jawab') }}
{{ $pcrroom->team->name }}
{{ __('keterangan') }}
{{ $pcrroom->keterangan }}
{{ __('Status Ruangan') }}
{{ $pcrroom->status_ruangan_text() }}
@if($pcrroom->status_ruangan < 3)
@csrf @method('put') @if($pcrroom->status_ruangan == 0) {{ __('Jalankan Mesin PCR') }} @endif @if($pcrroom->status_ruangan == 1) {{ __('Hasil Pengujian') }} @endif @if($pcrroom->status_ruangan == 2) {{ __('Kirim Hasil Ke WA') }} @endif
@else
@csrf {{ __('Download Data') }}
@endif
@if($pcrroom->status_ruangan == 0)
{{ __('Tambah Pasien') }} @csrf
@if ($errors->has('kode_barcode')) {{ $errors->first('kode_barcode') }} @endif
@endif {{ __('Detail Info') }}
@php $letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'] @endphp @for($j = 0; $j <= 8; $j++) @for($i = 1; $i <= 12; $i++) @if($j == 0) @else @if ($detailpcr = $pcrroom->details->where('huruf',$letters[$j-1])->where('nomor', $i)->first()) @php $bgcolor = ""; if($detailpcr->hasil == 1){ $bgcolor = "bg-danger"; } if($detailpcr->hasil == 2){ $bgcolor = "bg-success"; } if($detailpcr->hasil == 3){ $bgcolor = "bg-warning"; } @endphp @else @endif @endif @endfor @endfor
{{ ($j!=0)?$letters[$j-1]:'' }}{{ $i }} @if ($detailpcr->checkup) {{ $detailpcr->checkup->nama_lengkap }}
{{ $detailpcr->checkup->tanggal_lahir->format('Y-m-d') }}
@if($pcrroom->status_ruangan == 2) Update Hasil @endif @endif
@foreach($pcrroom->details as $detailpcr) @if($detailpcr->checkup) @if($pcrroom->status_ruangan == 2) @endif @endif @endforeach