62 lines
2.6 KiB
PHP
62 lines
2.6 KiB
PHP
<!doctype html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<style>
|
|
@page { margin: 28px 34px 58px; }
|
|
body { color: #17211b; font-family: DejaVu Sans, sans-serif; font-size: 9px; margin: 0; }
|
|
h1 { font-size: 21px; margin: 0 0 3px; }
|
|
.subtitle { color: #66736b; margin: 0 0 18px; }
|
|
.summary { background: #eef5f1; border-left: 4px solid #198754; margin-bottom: 16px; padding: 9px 12px; }
|
|
.summary strong { font-size: 13px; }
|
|
table { border-collapse: collapse; width: 100%; }
|
|
thead { display: table-header-group; }
|
|
tr { page-break-inside: avoid; }
|
|
th { background: #26382e; color: #fff; font-size: 8px; letter-spacing: .4px; padding: 7px 6px; text-align: left; text-transform: uppercase; }
|
|
td { border-bottom: 1px solid #dfe7e2; padding: 7px 6px; vertical-align: top; }
|
|
tbody tr:nth-child(even) { background: #f7f9f8; }
|
|
.number { text-align: right; }
|
|
.empty { color: #66736b; padding: 24px; text-align: center; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Reservas de entradas</h1>
|
|
<p class="subtitle">{{ $tenant->nombre }} · Generado el {{ $generatedAt->copy()->timezone($timeZone)->format('d/m/Y H:i') }}</p>
|
|
|
|
<div class="summary">
|
|
Reservas incluidas: <strong>{{ $reservations->count() }}</strong>
|
|
</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Tipo</th>
|
|
<th>Sector</th>
|
|
<th>Fila</th>
|
|
<th>Asiento</th>
|
|
<th>ID</th>
|
|
<th>Fecha</th>
|
|
<th class="number">Importe</th>
|
|
<th>Pago</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($reservations as $reservation)
|
|
<tr>
|
|
<td>{{ $reservation['tipo'] }}</td>
|
|
<td>{{ $reservation['sector'] }}</td>
|
|
<td>{{ $reservation['fila'] }}</td>
|
|
<td>{{ $reservation['asiento'] }}</td>
|
|
<td>{{ $reservation['ticket_id'] ?? '-' }}</td>
|
|
<td>{{ $reservation['fecha_reserva']->copy()->timezone($timeZone)->format('d/m/Y H:i') }}</td>
|
|
<td class="number">{{ $reservation['importe'] === null ? '-' : '$'.number_format((float) $reservation['importe'], 2, ',', '.') }}</td>
|
|
<td>{{ $reservation['pago'] }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td class="empty" colspan="8">No hay reservas para los criterios seleccionados.</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|