@extends('layouts.app') @section('title', __('laboratory::messages.wizard.step_patient')) @php /* | Everything the type-ahead says to the user, translated here and carried | to the bundle on a data attribute. Translations belong on this side — | app.js is one file for every locale. | | Nothing here for a failed request: the shared AJAX wrapper already | reports those, so a second message would mean two notices for one | failure and two places to keep the wording right. */ $searchStrings = [ 'searching' => __('laboratory::messages.wizard.searching'), 'none' => __('laboratory::messages.wizard.no_matches'), 'selected' => __('laboratory::messages.wizard.selected'), ]; /* | Per-field placeholder, hint and minimum length, so the box re-labels | itself the moment the field changes. All three come from the enum, which | is Patients' to define — a CNIC has to arrive whole because of how it is | stored, and that is not a fact Laboratory should be restating. */ $fieldRules = []; foreach ($searchFields as $searchField) { $fieldRules[$searchField->value] = [ 'placeholder' => $searchField->placeholder(), 'hint' => __('patients::messages.search.hint_'.$searchField->value), 'minimum' => $searchField->minimumLength(), ]; } @endphp @section('content')
{{ __('laboratory::messages.wizard.step_type_hint') }}