Files
ladill-frontdesk/resources/views/frontdesk/badges/pdf.blade.php
T
isaaccladandCursor 9e2d79936c
Deploy Ladill Frontdesk / deploy (push) Failing after 35s
Test / test (push) Failing after 2m45s
Initial Ladill Frontdesk release with deploy pipeline.
Visitor management app with SSO, kiosk, badges, reports, and Gitea CI deploy to frontdesk.ladill.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 20:37:15 +00:00

32 lines
1.5 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Visitor Badge · {{ $visit->badge_code }}</title>
<style>
body { font-family: system-ui, sans-serif; margin: 0; padding: 1rem; }
.badge { width: 3.5in; border: 2px solid #0d9488; border-radius: 12px; padding: 1rem; }
.org { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
.name { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0; }
.meta { font-size: 0.875rem; color: #444; line-height: 1.5; }
.code { font-family: monospace; font-size: 1.25rem; font-weight: 700; color: #0d9488; margin-top: 1rem; }
.expiry { font-size: 0.75rem; color: #888; margin-top: 0.5rem; }
@media print { body { padding: 0; } }
</style>
</head>
<body onload="window.print()">
<div class="badge">
<div class="org">{{ $visit->organization->name ?? 'Visitor' }}</div>
<div class="name">{{ $visit->visitor->full_name }}</div>
<div class="meta">
@if ($visit->visitor->company){{ $visit->visitor->company }}<br>@endif
Host: {{ $visit->host?->name ?? '—' }}<br>
Type: {{ ucfirst(str_replace('_', ' ', $visit->visitor_type)) }}<br>
Check-in: {{ $visit->checked_in_at?->format('g:i A') }}
</div>
<div class="code">{{ $visit->badge_code }}</div>
<div class="expiry">Expires {{ $visit->badge_expires_at?->format('g:i A') ?? 'end of day' }}</div>
</div>
</body>
</html>