Skip to content

Commit 468bd51

Browse files
authored
Create pdf.blade.php
1 parent 738ae3a commit 468bd51

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

resources/views/pdf.blade.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport"
7+
content="width=device-width, initial-scale=1.0">
8+
<meta http-equiv="X-UA-Compatible"
9+
content="ie=edge">
10+
<title>Export: {{ $collection->title() }}</title>
11+
<style>
12+
.page-break {
13+
page-break-after: always;
14+
}
15+
</style>
16+
</head>
17+
18+
<body>
19+
@foreach ($entries as $entry)
20+
@foreach ($entry as $k => $d)
21+
@if ($loop->first)
22+
<h4>{{ $d }}</h4>
23+
@else
24+
@if (!empty($d))
25+
<p><strong>{{ $k }}</strong></p>
26+
<p>{!! $d !!}</p>
27+
@endif
28+
@endif
29+
@endforeach
30+
@if (!$loop->last)
31+
<div class="page-break"></div>
32+
@endif
33+
@endforeach
34+
</body>
35+
36+
</html>

0 commit comments

Comments
 (0)