@extends('admin_navbar') @section('content')
TEST #{{ $labTest->id }}

Edit Test

Price is controlled by the selected Test Type.

Back
@csrf @method('DELETE')
@if($errors->any())
Please fix the following:
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @method('PUT')
{{-- Left --}}

Test Details

@php $selectedTypeId = old('test_type_id', $labTest->test_type_id); @endphp
Changing type will change the order pricing (because price comes from type).
This price is taken from Test Type.
is_active) ? 'checked' : '' }}> Active
Inactive tests can be hidden later for branches/customers.
{{-- Right --}}

Image & Equipment

@php $current = $labTest->test_case_image ? asset('storage/' . $labTest->test_case_image) : "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='100%25' height='100%25' fill='%23f1f5f9'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%2394a3b8' font-size='14'%3ENo Image%3C/text%3E%3C/svg%3E"; @endphp preview
Upload to replace. PNG/JPG/WEBP up to 2MB.
@php $selectedFromDb = $labTest->equipment->pluck('id')->toArray(); $selected = old('equipment_ids', $selectedFromDb); @endphp
Hold Ctrl/Command to select multiple.
Selected equipment:
@endsection