We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738ae3a commit 468bd51Copy full SHA for 468bd51
resources/views/pdf.blade.php
@@ -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
29
+ @endforeach
30
+ @if (!$loop->last)
31
+ <div class="page-break"></div>
32
33
34
+</body>
35
36
+</html>
0 commit comments