@extends('layouts.app') @section('title', ($service->exists ? 'Edit' : 'Tambah') . ' Layanan Lab Reguler') @section('breadcrumb')

{{ $service->exists ? 'Edit' : 'Tambah' }} Layanan Lab Reguler

Kembali ke Pengaturan Lab
@endsection @section('content')

Pilih jenis pemeriksaan dengan nama umum, misalnya Warna Urin dan Berat Jenis. Setiap pilihan akan menjadi kolom hasil pada permintaan laboratorium baru.

@if ($errors->any()) @endif
@csrf @if ($service->exists) @method ('PUT') @endif
is_active)) >
Jenis Pemeriksaan *
@php($selectedTestIds = collect(old('test_ids', $service->exists ? $service->tests->pluck('id')->all() : [])) ->filter(fn($id) => is_scalar($id)) ->map(fn($id) => (string) $id) ->all()) @php($parameterLabels = \App\Models\LabCategory::labels('parameter')) @foreach ($tests as $category => $categoryTests)
{{ $parameterLabels[$category] ?? ucwords(str_replace('_', ' ', $category)) }}
@foreach ($categoryTests as $test)
id, $selectedTestIds, true)) >
@endforeach
@endforeach
Tidak ada jenis pemeriksaan yang sesuai pencarian.
Batal
@endsection @push('scripts') @endpush