user()?->can('process-regular-checkups') &&
(int) $regularCheckup->doctor_id === (int) auth()->id() &&
in_array(
$regularCheckup->status,
[\App\Models\RegularCheckup::STATUS_IN_PROGRESS, \App\Models\RegularCheckup::STATUS_COMPLETED],
true
))
data-status-url="{{ route('regular-checkups.workstation-status', $regularCheckup) }}"
data-can-request="{{ ($canRequestSupportingExam ?? false) ? '1' : '0' }}"
@endif
>
@php($requests = $regularCheckup->supportingExams ->where('status', '!=', \App\Models\RegularSupportingExam::CANCELLED) ->keyBy('type'))
@if (\App\Helpers\ModuleHelper::isMcuEnabled() && (isset($labStateToken) || $regularCheckup->labOrder))
@php($workstationLabOrder = $regularCheckup->labOrder)
-
science
Laboratorium
{{ $workstationLabOrder?->statusLabel() }}
@if (isset($labStateToken))
@endif
Lihat Hasil
@endif
@foreach (\App\Models\RegularSupportingExam::TYPES as $type => $label)
@php($exam = $requests->get($type))
-
{{ \App\Models\RegularSupportingExam::ICONS[$type] }}
{{ $label }}
@endforeach