mein-sterntours/resources/views/pdf/layout-template.blade.php

220 lines
4.4 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<base href="{{ url('/') }}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>STERN TOURS</title>
<style>
/* Source Sans 3 - wird von DomPDF automatisch aus storage/fonts/ geladen */
html {
width: 100%;
height: 100%;
}
body {
position: relative;
width: 100%;
height: 100%;
margin: 0 auto;
padding: 0;
color: #000;
font-size: 8.5pt;
line-height: 1.1em;
font-weight: 400;
font-family: "source sans 3", sans-serif;
}
table {
border: none;
}
strong {
font-weight: bold;
}
@page {
margin: 20mm 15mm 22mm 15mm;
color: #000;
}
header {
position: fixed;
top: -20mm;
right: 0mm;
width: 100mm;
height: 20mm;
text-align: right;
}
header img {
padding-top: 6mm;
height: 10mm;
}
footer {
position: fixed;
bottom: -16mm;
left: 0;
right: 0;
height: 10mm;
padding-top: 2mm;
border-top: 0.25pt solid #000;
/** Extra personal styles **/
}
footer table {
width: 100%;
}
footer table td {
vertical-align: top;
width: 33.33%;
}
main {
width: 100%;
height: 100%;
}
u {
text-decoration: none;
font-weight: bold
}
.page_break {
page-break-before: always;
}
#pdf-page {
position: relative;
}
a {
color: #648859 !important;
text-decoration: none;
}
h1 {
font-weight: 400;
}
h2 {
margin-bottom: 0;
}
ul,
ol {
padding-left: 2rem;
}
li {
padding-bottom: 0.5rem;
}
.booking-table {
width: 180mm;
border-collapse: collapse;
margin-bottom: 2rem;
text-align: left;
}
.booking-table tr {}
.booking-table th {
padding: 0.2rem 0.4rem;
color: #ffffff;
background: #648859;
font-weight: bold;
border: 0.25pt solid #648859;
text-align: left;
}
.booking-table h3 {
padding: 0.2rem 0rem;
line-height: 1rem;
margin: 0;
text-align: left;
}
.booking-table td {
padding: 0.15rem 0.4rem;
color: #000;
border: 0.25pt solid #000;
font-size: 8.5pt;
}
.pdf-input-content {
margin-bottom: 2rem;
}
.pdf-break-block {
page-break-inside: avoid;
}
.text-center,
.booking-table th.text-center,
.booking-table td.text-center {
text-align: center;
}
.text-right,
.booking-table th.text-right,
.booking-table td.text-right {
text-align: right;
}
.no-border-table {
padding: 0;
margin: 0;
border-collapse: collapse;
border: none;
}
.no-border-table tr,
.no-border-table td,
.no-border-table th {
border: none;
padding: 0;
margin: 0;
}
.small {
font-size: 0.9em;
}
</style>
</head>
<body>
<script type="text/php">
if (isset($pdf)) {
$font = null;
$size = 8;
$color = array(0,0,0);
$word_space = 0.0; // default
$char_space = 0.0; // default
$angle = 0.0; // default
$text = "{PAGE_NUM} / {PAGE_COUNT}";
$y = $pdf->get_height() - 65;
$x = $pdf->get_width() - 60;
$pdf->page_text($x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle);
}
</script>
<header>
</header>
<footer>
</footer>
<main>
<div id="pdf-page">
@yield('content')
</div>
</main>
</body>
</html>