@extends('layouts.app')
@section('title', __('laboratory::messages.microbiology.title'))
@section('content')
{{ __('laboratory::messages.microbiology.title') }}
{{ __('laboratory::messages.microbiology.subtitle') }}
{{-- This screen is reached from the catalogue and is not in the
sidebar, so it carries its own way back. --}}
{{ __('laboratory::messages.catalogue.title') }}
@foreach ([
['entries' => $organisms, 'kind' => 'organisms', 'store' => 'lab.catalogue.organisms.store', 'update' => 'lab.catalogue.organisms.update'],
['entries' => $antibiotics, 'kind' => 'antibiotics', 'store' => 'lab.catalogue.antibiotics.store', 'update' => 'lab.catalogue.antibiotics.update'],
] as $panel)
{{ __('laboratory::messages.microbiology.'.$panel['kind'].'_hint') }}
@can('create', \App\Modules\Laboratory\Models\LabTest::class)
@endcan
@if ($panel['entries']->isEmpty())
{{ __('laboratory::messages.microbiology.none') }}
@else
@foreach ($panel['entries'] as $entry)
! $entry->is_active])>
{{-- `create`, not `update`: the test policy's update
ability needs a LabTest instance and this screen has
none. Both map to lab_catalogue.manage. --}}
@can('create', \App\Modules\Laboratory\Models\LabTest::class)
|
{{-- Renaming is safe: every report snapshots the
name it printed, so a correction here never
rewrites a result already issued. --}}
|
@else
{{ $entry->name }} |
@unless ($entry->is_active)
{{ __('laboratory::messages.microbiology.retired') }}
@endunless
|
@endcan
@endforeach
@endif
@endforeach
@endsection