Deploy Ladill Care / deploy (push) Failing after 13s
Healthcare management app: patients, appointments, consultations, lab, pharmacy inventory, billing, and reports at care.ladill.com. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
1.7 KiB
PHP
28 lines
1.7 KiB
PHP
<x-app-layout title="Investigation catalog">
|
||
<div class="flex items-center justify-between">
|
||
<h1 class="text-xl font-semibold text-slate-900">Investigation catalog</h1>
|
||
<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>
|