83 lines
2.3 KiB
PHP
83 lines
2.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
@page {
|
|
margin: 15mm 10mm;
|
|
}
|
|
|
|
body {
|
|
font-family: DejaVu Sans, sans-serif;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 8mm;
|
|
}
|
|
|
|
th, td {
|
|
border: 1px solid #000;
|
|
padding: 6px 8px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
td {
|
|
font-size: 8pt;
|
|
}
|
|
|
|
th {
|
|
background: #f2f2f2;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.page-break {
|
|
page-break-after: always;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
@php
|
|
$rows = $rows ?? [];
|
|
$chunks = array_chunk($rows, 8);
|
|
@endphp
|
|
|
|
@foreach($chunks as $chunk)
|
|
<h1>Getränke-Liste {{$event}}</h1>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 2cm;">Name, Alter</th>
|
|
<th style="width: 2cm;">Stamm</th>
|
|
<th style="width: 3cm;">Softdrinks 1</th>
|
|
<th style="width: 3cm;">Softdrinks 2</th>
|
|
<th style="width: 3cm;">Softdrinks 3</th>
|
|
<th style="width: 3cm;">Softdrinks 4</th>
|
|
<th style="width: 3cm;">alk. Getränk 1</th>
|
|
<th style="width: 3cm;">alk. Getränk 2</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($chunk as $index => $row)
|
|
<tr>
|
|
<td>{{ $row['lastname']}},<br />{{ $row['firstname'] }}<br /> {{$row['age'] ?? ''}} Jahre</td>
|
|
<td>{{ $row['localgroup'] ?? '' }}</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td style="font-weight: bold; font-size: 12pt; text-align: center; vertical-align: middle;">{{ $row['alcoholicsAllowed'] ? '' : 'keine Abgabe' }}</td>
|
|
<td style="font-weight: bold; font-size: 12pt; text-align: center; vertical-align: middle;">{{ $row['alcoholicsAllowed'] ? '' : 'keine Abgabe' }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
@if(! $loop->last)
|
|
@endif
|
|
@endforeach
|
|
</body>
|
|
</html>
|