Skip to content

Commit a143fb6

Browse files
authored
Merge pull request #111 from AdrienPoupa/patch-1
Use Blade's helper to check for the first row.
2 parents 1a93669 + 295918a commit a143fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/print.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<body>
1616
<table class="table table-bordered table-condensed table-striped">
1717
@foreach($data as $row)
18-
@if ($row == reset($data))
18+
@if ($loop->first)
1919
<tr>
2020
@foreach($row as $key => $value)
2121
<th>{!! $key !!}</th>

0 commit comments

Comments
 (0)