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

This commit is contained in:
Ivan Nieto Vivanco 2021-09-13 16:17:34 -05:00
parent a5409215fc
commit 2b64af0d34

View file

@ -122,11 +122,15 @@
</tr>
</thead>
@php
$counter = 1;
$counter = 1;;
@endphp
@foreach ($assets as $asset)
@php
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->name === 'Archived'){
continue;
}
@endphp
<tr>
<td>{{ $counter }}</td>
<td>{{ $asset->asset_tag }}</td>