From 2b64af0d34d9310701b25c9ea37df01d8612859c Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Mon, 13 Sep 2021 16:17:34 -0500 Subject: [PATCH] Add a condition in the view 'print all assigned' from locations where it skips the assets in relation of if they're archived and that option is marked in the settings --- resources/views/locations/print.blade.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/views/locations/print.blade.php b/resources/views/locations/print.blade.php index 97fc15d958..3cc565fe03 100644 --- a/resources/views/locations/print.blade.php +++ b/resources/views/locations/print.blade.php @@ -122,11 +122,15 @@ @php - $counter = 1; + $counter = 1;; @endphp @foreach ($assets as $asset) - + @php + if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->name === 'Archived'){ + continue; + } + @endphp {{ $counter }} {{ $asset->asset_tag }}