ispt4.0_laravel/resources/views/components/pdf-layout.blade.php
2024-09-05 07:28:48 +01:00

128 lines
2.6 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PDF Report</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.page-break {
page-break-before: always;
}
@page {
size: A4;
margin-top: 15mm;
margin-bottom: 15mm;
margin-left: 15mm;
margin-right: 15mm;
}
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
/* css para as pagina principal */
.container-frist-page {
/* border: 1px solid black; */
height: 100%;
width: 100%;
position: relative;
}
.header-frist-page {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid black;
}
.header-frist-page .title {
text-align: center;
flex-grow: 1;
}
.header-frist-page .info {
text-align: right;
width: 150px;
}
.info-table,
.spec-table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.info {
text-align: center;
padding-right: 15px;
}
.info-table td,
.spec-table td,
.info-table th,
.spec-table th {
border: 1px solid black;
padding: 5px;
text-align: center;
}
.spec-table .section-title {
background-color: #f2f2f2;
text-align: left;
padding-left: 5px;
font-weight: bold;
}
/* css para as paginas de loop */
.container-loop-pages {
height: 100%;
width: 100%;
position: relative;
}
.header-container-loop-pages {
/* border: 1px solid black; */
padding: 0px;
}
.content-loop-pages {
margin-top: 40px;
padding: 0px;
}
.footer-container {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
padding: 10px;
box-sizing: border-box;
}
</style>
</head>
<body>
<!-- Primeira Página -->
@yield('firstPage')
<!-- Páginas subsequentes -->
@yield('loopPages')
</body>
</html>