@extends('lab_settings.layout') @section('lab-content')
Aturan Interpretasi Hasil
Tambah Aturan

@include('partials.tables.filters', ['paginator' => $rules, 'tableFilters' => ['sort', 'direction']]) @forelse ($rules as $rule) @empty @endforelse
No @include('partials.tables.sort_link', ['column' => 'name', 'label' => 'Aturan / Pemeriksaan']) Jenis / Pasien Nilai Normal @include('partials.tables.sort_link', ['column' => 'effective_from', 'label' => 'Masa Berlaku']) @include('partials.tables.sort_link', ['column' => 'is_active', 'label' => 'Status']) Aksi
{{ $rules->firstItem() + $loop->index }}
{{ $rule->name }}
{{ $rule->labTest?->name ?? 'Pemeriksaan tidak tersedia' }}
{{ $rule->type === 'numeric_range' ? 'Rentang Angka' : 'Pemetaan Nilai' }}
{{ ['both' => 'Semua gender', 'male' => 'Laki-laki', 'female' => 'Perempuan'][ $rule->gender ] }} · Usia {{ $rule->age_min ?? '0' }}–{{ $rule->age_max ?? 'tanpa batas' }} tahun
@if ($rule->type === 'numeric_range') @if ($rule->minimum !== null) {{ $rule->minimum_inclusive ? '≥' : '>' }} {{ $rule->minimum }} @endif @if ($rule->maximum !== null) {{ $rule->maximum_inclusive ? '≤' : '<' }} {{ $rule->maximum }} @endif @else {{ implode(', ', $rule->normal_values ?? []) ?: 'Tidak ditetapkan' }} @endif {{ $rule->effective_from->format('d/m/Y') }} – {{ $rule->effective_to?->format('d/m/Y') ?? 'seterusnya' }} {{ $rule->is_active ? 'Aktif' : 'Nonaktif' }}
@csrf @method ('DELETE')
Tidak ada data yang cocok dengan pencarian.
{{ $rules->links('partials.tables.pagination') }}
@endsection