Files
ladill-care/resources/views/care/lab/catalog/index.blade.php
T
isaaccladandCursor 656f402e8f
Deploy Ladill Care / deploy (push) Successful in 38s
Restrict lab catalog pricing to admins only.
Split catalog CRUD onto lab.catalog.manage so technicians keep lab.manage for queue and results workflow without setting investigation prices.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 18:58:57 +00:00

31 lines
1.8 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">Admins manage test types and prices. Lab technicians process samples from the laboratory queue.</p>
</div>
<a href="{{ route('care.lab.catalog.create') }}" class="btn-primary">Add test</a>
</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>