@extends('backend.template.layouts.template-base') @section('title', 'Edit Test — ' . ($config['name'] ?? 'Panel')) @section('styles') @endsection @section('content') @php $categorySlug = strtoupper($config['category'] ?? 'HAEMATOLOGY'); $panelName = $config['name'] ?? 'Test Panel'; $parameters = $config['parameters'] ?? []; $isBloodGroup = stripos($panelName, 'blood group') !== false; $paramIndices = old('param_name') ? array_keys(old('param_name')) : array_keys($parameters); if ($paramIndices === [] && ! empty($parameters)) { $paramIndices = array_keys($parameters); } if ($paramIndices === []) { $paramIndices = $isBloodGroup ? [0, 1] : [0]; $parameters = $isBloodGroup ? [ ['order' => 0, 'name' => 'ABO Group', 'unit' => '', 'input_type' => 'dropdown', 'default_result' => '', 'optional' => false, 'removed' => false], ['order' => 1, 'name' => 'Rh (anti-D)', 'unit' => '', 'input_type' => 'dropdown', 'default_result' => '', 'optional' => false, 'removed' => false], ] : [ ['order' => 0, 'name' => 'Result', 'unit' => '', 'input_type' => 'single_line', 'default_result' => '', 'optional' => false, 'removed' => false], ]; } $inputTypeOptions = \App\Models\LabTest::parameterInputTypeOptions(); @endphp
Back to Report

{{ $panelName }}

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@endif
@csrf @method('PUT')

Test details

@error('name')
{{ $message }}
@enderror
@error('category')
{{ $message }}
@enderror

Parameters

@foreach ($paramIndices as $i) @include('backend.template.diagnostic.cases.bill.partials.param_row', [ 'i' => $i, 'p' => $parameters[$i] ?? [], 'testUnits' => $testUnits, ]) @endforeach

Configure print/PDF formatting for this test panel.

You can now copy interpretations from Library or to update. New Library
Use Shift + Enter key to go to new line.
@error('interpretation')
{{ $message }}
@enderror

For best results use formatting options available in the editor. Use clear formatting when you copy paste text.

Cancel
@endsection @section('scripts') @endsection