From 8c9132aff9be01a90ac53b16d87303bd912b24b0 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 7 Oct 2024 14:22:49 -0700 Subject: [PATCH] Hide EULA text and button when nothing will be displayed --- resources/views/users/print.blade.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.php index 4ca442895b..40575e7efc 100644 --- a/resources/views/users/print.blade.php +++ b/resources/views/users/print.blade.php @@ -373,8 +373,11 @@ @endif + @php + if (!empty($eulas)) $eulas = array_unique($eulas); + @endphp {{-- This may have been render at the top of the page if we're rendering more than one user... --}} - @if (count($users) === 1) + @if (count($users) === 1 && !empty($eulas))