Files
ladill-frontdesk/resources/views/frontdesk/hosts/index.blade.php
T
isaaccladandCursor e7f1cb1e5c
Deploy Ladill Frontdesk / deploy (push) Successful in 25s
Align Frontdesk buttons and accents with sibling Ladill apps.
Replace inline teal button classes with shared btn-primary and indigo nav/link styling used by CRM and POS.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 21:23:14 +00:00

37 lines
1.9 KiB
PHP

<x-app-layout title="Host directory">
<div class="flex items-center justify-between">
<h1 class="text-xl font-semibold text-slate-900">Host directory</h1>
<a href="{{ route('frontdesk.hosts.create') }}" class="btn-primary">Add host</a>
</div>
<div class="mt-4 overflow-hidden rounded-2xl border border-slate-200 bg-white">
<table class="min-w-full divide-y divide-slate-100 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">Department</th>
<th class="px-4 py-3">Office</th>
<th class="px-4 py-3">Contact</th>
<th class="px-4 py-3"></th>
</tr>
</thead>
<tbody class="divide-y divide-slate-50">
@forelse ($hosts as $host)
<tr>
<td class="px-4 py-3 font-medium">{{ $host->name }}</td>
<td class="px-4 py-3 text-slate-600">{{ $host->department ?? '—' }}</td>
<td class="px-4 py-3 text-slate-600">{{ $host->office ?? '—' }}</td>
<td class="px-4 py-3 text-slate-600">{{ $host->email ?? $host->phone ?? '—' }}</td>
<td class="px-4 py-3 text-right">
<a href="{{ route('frontdesk.hosts.edit', $host) }}" class="text-sm text-indigo-600">Edit</a>
</td>
</tr>
@empty
<tr><td colspan="4" class="px-4 py-8 text-center text-slate-400">No hosts yet. Add your first host to enable visitor notifications.</td></tr>
@endforelse
</tbody>
</table>
</div>
<div class="mt-4">{{ $hosts->links() }}</div>
</x-app-layout>