Files
ladill-care/resources/views/care/lab/catalog/index.blade.php
T
isaaccladandCursor 5d9d333170
Deploy Ladill Care / deploy (push) Successful in 46s
Add Lab and Blood Bank manager roles with admin UIs.
Give lab_manager catalog/ops admin access and blood_bank_manager a branch-level stock register plus specialty admin surface, while keeping technicians on clinical queues.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-19 14:18:47 +00:00

34 lines
2.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<x-app-layout title="Investigation catalog">
<div class="flex items-center justify-between">
<div>
<h1 class="text-xl font-semibold text-slate-900">Investigation catalog</h1>
<p class="mt-1 text-sm text-slate-500">Managers and admins set test types and prices. Lab technicians process samples from the laboratory queue.</p>
</div>
<div class="flex gap-2">
<a href="{{ route('care.lab.admin.index') }}" class="rounded-lg border border-slate-200 px-4 py-2 text-sm">Lab admin</a>
<a href="{{ route('care.lab.catalog.create') }}" class="btn-primary">Add test</a>
</div>
</div>
<div class="mt-4 overflow-hidden rounded-2xl border border-slate-200 bg-white">
<table class="min-w-full text-sm">
<thead class="bg-slate-50 text-left text-xs uppercase text-slate-500">
<tr><th class="px-4 py-3">Name</th><th class="px-4 py-3">Category</th><th class="px-4 py-3">Reference</th><th class="px-4 py-3">Price</th><th></th></tr>
</thead>
<tbody class="divide-y divide-slate-50">
@forelse ($types as $type)
<tr>
<td class="px-4 py-3 font-medium">{{ $type->name }}</td>
<td class="px-4 py-3">{{ $categories[$type->category] ?? $type->category }}</td>
<td class="px-4 py-3">{{ $type->reference_text ?? ($type->reference_low.''.$type->reference_high) }} {{ $type->unit }}</td>
<td class="px-4 py-3">{{ number_format($type->price_minor / 100, 2) }}</td>
<td class="px-4 py-3 text-right"><a href="{{ route('care.lab.catalog.edit', $type) }}" class="text-sky-600">Edit</a></td>
</tr>
@empty
<tr><td colspan="5" class="px-4 py-8 text-center text-slate-500">No tests in catalog.</td></tr>
@endforelse
</tbody>
</table>
</div>
<div class="mt-4">{{ $types->links() }}</div>
</x-app-layout>