@extends('layouts.app') @section('title', 'Hasil Audiometry - MCU Klinik Mustika') @section('breadcrumb')

Hasil Audiometry

@endsection @section('content')
@include('partials.workstations.index_header', [ 'heading' => 'Hasil Pemeriksaan Audiometri', 'resultCount' => $completedResults->total(), 'verificationPage' => false, 'showDateFilter' => true ])
@include('partials.tables.filters', [ 'paginator' => $completedResults, 'tableFilters' => ['status', 'date', 'sort', 'direction'] ]) @forelse ($completedResults as $result) @empty @endforelse
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
{{ $completedResults->firstItem() + $loop->index }} {{ $result->appointment->registration_number }} {{ $result->appointment->patient->medical_record_number ?? '-' }}
{{ $result->appointment->patient->name ?? '-' }}
@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) {{ $result->appointment->patient->gender == 'male' ? 'Laki-laki' : 'Perempuan' }} @else - @endif {{ $result->appointment->patient->detailed_age ?? '-' }} {{ $result->appointment->appointment_date ? $result->appointment->appointment_date->format('d/m/Y') : '-' }} @if ($result->technicianDisplayName())
{{ $result->technicianDisplayName() }}
Petugas @endif @if ($result->selectedDoctor && $result->selectedDoctor->employee)
{{ $result->selectedDoctor->employee->full_name }}
Verifikator @endif @if (!$result->technicianDisplayName() && !$result->selectedDoctor) - @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->updated_at)
{{ \Carbon\Carbon::parse($result->updated_at)->format( 'd/m/Y H:i', ) }}
{{ \Carbon\Carbon::parse( $result->updated_at, )->diffForHumans() }} @else - @endif
@canRoute ('audiometry.results.show') @endcanRoute
{{ $completedResults->links('pagination::bootstrap-5') }}
@endsection