From 295918ac2cb6a1f3a0a663e31ed4b5e5b3e835c0 Mon Sep 17 00:00:00 2001 From: Adrien Poupa Date: Mon, 6 Jul 2020 17:07:01 -0400 Subject: [PATCH] Use Blade's helper to check for the first row --- src/resources/views/print.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/views/print.blade.php b/src/resources/views/print.blade.php index d9767b7..735d84d 100644 --- a/src/resources/views/print.blade.php +++ b/src/resources/views/print.blade.php @@ -15,7 +15,7 @@ @foreach($data as $row) - @if ($row == reset($data)) + @if ($loop->first) @foreach($row as $key => $value)
{!! $key !!}