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>
29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<x-app-layout title="Departments">
|
|
<div class="flex items-center justify-between">
|
|
<h1 class="text-xl font-semibold text-slate-900">Departments</h1>
|
|
<a href="{{ route('care.departments.create') }}" class="btn-primary">Add department</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">Type</th><th class="px-4 py-3">Branch</th><th class="px-4 py-3"></th></tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-slate-50">
|
|
@forelse ($departments as $department)
|
|
<tr>
|
|
<td class="px-4 py-3 font-medium">{{ $department->name }}</td>
|
|
<td class="px-4 py-3">{{ $types[$department->type] ?? $department->type }}</td>
|
|
<td class="px-4 py-3">{{ $department->branch?->name }}</td>
|
|
<td class="px-4 py-3 text-right">
|
|
<a href="{{ route('care.departments.edit', $department) }}" class="text-sky-600">Edit</a>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="4" class="px-4 py-6 text-center text-slate-500">No departments yet.</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</x-app-layout>
|