@extends('layouts.app') @section('title', __('laboratory::messages.wizard.step_tests')) @php use App\Modules\Laboratory\Models\LabTest; use App\Support\Money\Money; $grouped = $tests->groupBy(fn (LabTest $test): string => $test->category->value); $selected = array_map(intval(...), (array) $selected); /* | The basket totals in the browser, so it needs the two things PHP knows | about this currency and JavaScript does not: how many decimal places it | has, and how the clinic writes it. Sending a worked example rather than a | format string keeps Money the only place that decides either. */ $zero = Money::fromMinor(0, $currency); $exponent = strlen(substr(strrchr($zero->toMajor(), '.') ?: '', 1)); @endphp @section('content')
{{ __('laboratory::messages.wizard.step_tests_hint') }}
{{ __('laboratory::messages.orders.no_tests_available') }}
{{ __('laboratory::messages.orders.no_tests_available_text') }}