Deploy Ladill Frontdesk / deploy (push) Successful in 25s
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>
36 lines
1.8 KiB
PHP
36 lines
1.8 KiB
PHP
<x-app-layout title="Visitors">
|
|
<div class="flex items-center justify-between">
|
|
<h1 class="text-xl font-semibold text-slate-900">Visitor database</h1>
|
|
</div>
|
|
|
|
<form method="GET" class="mt-4">
|
|
<input type="search" name="q" value="{{ request('q') }}" placeholder="Search by name…" class="w-full max-w-md rounded-lg border-slate-300 text-sm">
|
|
</form>
|
|
|
|
<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">Company</th>
|
|
<th class="px-4 py-3">Visits</th>
|
|
<th class="px-4 py-3">Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-slate-50">
|
|
@forelse ($visitors as $visitor)
|
|
<tr class="hover:bg-slate-50">
|
|
<td class="px-4 py-3"><a href="{{ route('frontdesk.visitors.show', $visitor) }}" class="font-medium text-indigo-700">{{ $visitor->full_name }}</a></td>
|
|
<td class="px-4 py-3 text-slate-600">{{ $visitor->company ?? '—' }}</td>
|
|
<td class="px-4 py-3 text-slate-600">{{ $visitor->visit_count }}</td>
|
|
<td class="px-4 py-3 capitalize text-slate-600">{{ str_replace('_', ' ', $visitor->watchlist_status) }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="4" class="px-4 py-8 text-center text-slate-400">No visitors yet.</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="mt-4">{{ $visitors->links() }}</div>
|
|
</x-app-layout>
|