PDF-Generator für Eventschluss; CSRF-Protection
This commit is contained in:
93
resources/views/pdf/pre_application.blade.php
Normal file
93
resources/views/pdf/pre_application.blade.php
Normal file
@@ -0,0 +1,93 @@
|
||||
@php
|
||||
$logoPath = public_path('Dokumente/c3govsticker.png');
|
||||
$logoData = base64_encode(file_get_contents($logoPath));
|
||||
$logoSrc = 'data:image/png;base64,' . $logoData;
|
||||
@endphp
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>Voranträge</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<style>
|
||||
#logo {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.page {
|
||||
page-break-before: always;
|
||||
margin-left: 50px;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stampfield {
|
||||
position: absolute;
|
||||
bottom: 50px;
|
||||
right: 50px;
|
||||
width: 90%;
|
||||
height: 50%;
|
||||
border: 1px solid black;
|
||||
padding: 5px;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<h1 class="center">Voranträge gem. § 5 C3GovVerwV für die (temporäre) Bz.Reg.-Erw.</h1>
|
||||
<h1 class="center">{{ $event->name }}</h1>
|
||||
<h2 class="center">der Bezirksregion CCC</h2>
|
||||
<h3 style="text-align: center;">Gültig vom {{ $event->from_date_visible->toDateString() }} bis einschließlich dem {{ $event->to_date_visible->toDateString() }}</h3>
|
||||
<img style="display: block; margin: 41%; width: 150px; height: 150px;" src="{{ $logoSrc }}">
|
||||
</div>
|
||||
@foreach($applications as $application)
|
||||
<div class="page">
|
||||
<div style="position: relative;">
|
||||
<img id="logo" src="{{ $logoSrc }}">
|
||||
<h1>Vorantrag {{ $application->reference_number }}</h1>
|
||||
<br /><br />
|
||||
<p>Folgende Entität hat einen Vorantrag gemäß § 5 C3GovVerwV gestellt:</p>
|
||||
<br /><br />
|
||||
<table>
|
||||
<tr>
|
||||
<td>Vorname:</td>
|
||||
<td>{{ $application->first_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nachname:</td>
|
||||
<td>{{ $application->last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ort/Hackspace:</td>
|
||||
<td>{{ $application->location }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Datenbankerfassung am:</td>
|
||||
<td>{{ $application->created_at }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Interne Notizen:</td>
|
||||
<td>{{ $application->notes }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
<p>Obige Angaben sind vor Ausstellung zu prüfen und mittels Formblatt 5 zu genehmigen.</p>
|
||||
<br /><br /><br />
|
||||
<div class="stampfield">
|
||||
<div class="center">Bearbeitungsvermerke</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user