ispt4.0_laravel/resources/views/components/pdf-layout.blade.php
2024-06-10 11:46:47 +01:00

130 lines
2.7 KiB
PHP

{{-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
@page {
size: A4;
margin: 20mm;
}
body {
font-family: Arial, sans-serif;
font-size: 14px;
margin: 0;
padding: 0;
}
.page-break {
page-break-before: always;
}
header, footer {
position: fixed;
left: 0;
right: 0;
height: 50px;
text-align: center;
}
header {
top: 0;
}
footer {
bottom: 0;
}
.content {
margin-top: 70px;
margin-bottom: 70px;
}
</style>
</head>
<body>
<div>
{{ $slot }}
</div>
</body>
</html> --}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
{{-- <link rel="stylesheet" href="{{ url('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css') }}"> --}}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
@page {
size: A4;
margin-top: 10px;
}
body {
font-family: Arial, sans-serif;
font-size: 14px;
margin: 0;
padding: 0;
}
.page-break {
page-break-before: always;
}
header, footer {
position: fixed;
left: 0;
right: 0;
height: 50px;
text-align: center;
}
header {
top: 0;
bottom: 10mm;
margin-bottom: 100px;
}
footer {
bottom: 0;
}
.content {
margin-top: 150px;
margin-bottom: 70px;
left: 0;
right: 0;
/* margin: 0; */
padding: 0;
}
</style>
</head>
<body>
<div class="container">
<header class="mb-3"> <!-- Certifique-se de adicionar margem abaixo do cabeçalho -->
@include('projectsClients.pdf._header', compact('tag', 'numeroPanini', 'nObra', 'ambito'))
</header>
<div class="content">
<!-- Seu conteúdo principal aqui -->
{{ $slot }}
</div>
<footer>
@include('projectsClients.pdf._footer')
</footer>
</div>
</body>
</html>