@extends('lab_settings.layout') @section('lab-content') @php $activeSettingsTab = $activeLabSection; @endphp @if ($activeLabSection === 'regular-lab-services') @include('settings.regular_lab_services.index') @else {{-- ===== TAB: Pengaturan Pemeriksaan Laboratorium ===== --}}
Pengaturan Pemeriksaan Laboratorium
{{-- Sub-tabs: Warna Urine | Warna Feses --}}
@if ($activeLabTab === 'urine') {{-- ===== SUB-TAB: Warna Urine ===== --}}
{{-- Form Tambah Warna Urine --}}
@csrf
@error ('value')
{{ $message }}
@enderror
{{-- Tabel Warna Urine --}} @if ($activeSettingsTab !== 'regular-lab-services' && $activeLabTab === 'urine')
@include('partials.tables.filters', ['paginator' => $urineColors, 'tableFilters' => ['tab', 'lab_tab', 'sort', 'direction']]) {{-- --}} @forelse ($urineColors as $index => $color) {{-- --}} @empty @endforelse
No Nama WarnaStatus Urutan Aksi
{{ $urineColors->firstItem() + $index }}
@csrf @method ('PUT')
{{ $color->label }}
@if ($color->is_active) Aktif @else Nonaktif @endif {{ $color->display_order }}
{{-- Tombol Edit --}} {{-- Tombol Toggle Aktif --}} {{--
@csrf @method('PATCH')
--}} {{-- Tombol Hapus --}}
label }}\"? Tindakan ini tidak dapat dibatalkan.')" > @csrf @method ('DELETE')
Tidak ada data yang cocok dengan pencarian.
{{ $urineColors->links('partials.tables.pagination') }}
@endif
@endif @if ($activeLabTab === 'feces') {{-- ===== SUB-TAB: Warna Feses ===== --}}
{{-- Form Tambah Warna Feses --}}
@csrf
@error ('value')
{{ $message }}
@enderror
{{-- Tabel Warna Feses --}} @if ($activeSettingsTab !== 'regular-lab-services' && $activeLabTab === 'feces')
@include('partials.tables.filters', ['paginator' => $fecesColors, 'tableFilters' => ['tab', 'lab_tab', 'sort', 'direction']]) {{-- --}} @forelse ($fecesColors as $index => $color) {{-- --}} @empty @endforelse
No Nama WarnaStatus Urutan Aksi
{{ $fecesColors->firstItem() + $index }}
@csrf @method ('PUT')
{{ $color->label }}
@if ($color->is_active) Aktif @else Nonaktif @endif {{ $color->display_order }}
{{-- Tombol Simpan Edit (tersembunyi awalnya) --}} {{-- Tombol Edit --}} {{-- Tombol Toggle Aktif --}} {{--
@csrf @method('PATCH')
--}} {{-- Tombol Hapus --}}
label }}\"? Tindakan ini tidak dapat dibatalkan.')" > @csrf @method ('DELETE')
Tidak ada data yang cocok dengan pencarian.
{{ $fecesColors->links('partials.tables.pagination') }}
@endif
@endif
{{-- end tab-content (sub-tabs) --}}
{{-- end card-body --}}
{{-- end card --}}
{{-- end tab-pane --}} @endif @endsection @push('scripts') @endpush