@extends('layouts.app') @section('title', 'Hasil Pemeriksaan DASS21 - MCU Klinik Mustika') @section('breadcrumb')
| No. | @include('partials.tables.sort_link', ['column' => 'registration_number', 'label' => 'No. Reg']) | @include('partials.tables.sort_link', ['column' => 'medical_record_number', 'label' => 'No. MR']) | @include('partials.tables.sort_link', ['column' => 'name', 'label' => 'Nama Pasien']) | @include('partials.tables.sort_link', ['column' => 'gender', 'label' => 'Jenis Kelamin']) | @include('partials.tables.sort_link', ['column' => 'age', 'label' => 'Umur']) | @include('partials.tables.sort_link', ['column' => 'appointment_date', 'label' => 'Tanggal MCU']) | @include('partials.tables.sort_link', ['column' => 'staff', 'label' => 'Pemeriksa & Verifikator']) | @include('partials.tables.sort_link', ['column' => 'verified_at', 'label' => 'Waktu Selesai Pemeriksaan']) | Aksi |
|---|---|---|---|---|---|---|---|---|---|
| {{ $results->firstItem() + $loop->index }} | {{ $result->appointment->registration_number ?? '-' }} | {{ $result->appointment->patient ? $result->appointment->patient->medical_record_number : $result->patient->medical_record_number ?? 'N/A' }} |
{{
$result->appointment->patient
? $result->appointment->patient->name
: $result->patient->name ?? 'Pasien Tidak Ditemukan'
}}
@if ($result->appointment->patient)
@if ($result->appointment->patient->company)
{{ $result->appointment->patient->company->name }}
@if ($result->appointment->patient->job_position)
{{ $result->appointment->patient->job_position }}
@endif
@else
Individu
@endif
@else
Data pasien tidak tersedia
@endif
|
@if ($result->appointment->patient) {{ $result->appointment->patient->gender == 'male' ? 'Laki-laki' : 'Perempuan' }} @elseif ($result->patient) {{ $result->patient->gender == 'male' ? 'Laki-laki' : 'Perempuan' }} @else N/A @endif | @if ($result->appointment->patient) {{ $result->appointment->patient->detailed_age ?: '-' }} @elseif ($result->patient) {{ $result->patient->detailed_age ?: '-' }} @else N/A @endif | {{ $result->appointment->appointment_date ? $result->appointment->appointment_date->format('d/m/Y') : '-' }} |
@if ($result->examiner && $result->examiner->name)
{{ $result->examiner->name }}
Pemeriksa
@endif
@if ($result->verifiedBy && $result->verifiedBy->name)
{{ $result->verifiedBy->name }}
Verifikator
@endif
@if (!$result->examiner && !$result->verifiedBy)
-
@endif
|
@if ($result->verified_at)
{{
\Carbon\Carbon::parse($result->verified_at)->format(
'd/m/Y H:i',
)
}}
{{
\Carbon\Carbon::parse(
$result->verified_at,
)->diffForHumans()
}}
@elseif ($result->examination_time)
{{
\Carbon\Carbon::parse($result->examination_time)->format(
'd/m/Y H:i',
)
}}
{{
\Carbon\Carbon::parse(
$result->examination_time,
)->diffForHumans()
}}
@elseif ($result->updated_at)
{{
\Carbon\Carbon::parse($result->updated_at)->format(
'd/m/Y H:i',
)
}}
{{
\Carbon\Carbon::parse(
$result->updated_at,
)->diffForHumans()
}}
@else
-
@endif
|
@canRoute ('dass21.results.show')
@endcanRoute
@if ($result->status == 'completed' || $result->status == 'verified')
@canRoute ('dass21.results.pdf')
download
@endcanRoute
@canRoute ('dass21.results.print')
@endcanRoute
@endif
|