Skip to content

A free open source IT asset/license management system

Only allow audit if not deleted

snipeafbd31ca0194
diff --git a/resources/views/blade/button/audit.blade.php b/resources/views/blade/button/audit.blade.php
index e21025ec4b..169889fa2f 100644
--- a/resources/views/blade/button/audit.blade.php
+++ b/resources/views/blade/button/audit.blade.php
@@ -5,12 +5,14 @@
])
@can('audit', $item)
- <span class="tooltip-wrapper"{!! (!$item->model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid_fix').'"' : '') !!}>
- <a href="{{ $route }}" class="btn btn-sm btn-primary hidden-print{{ (!$item->model ? ' disabled' : '') }}" data-tooltip="true" title="{{ trans('general.audit') }}">
- <x-icon type="audit" class="fa-fw"/>
- @if ($wide=='true')
- {{ trans('general.audit') }}
- @endif
- </a>
- </span>
+ @if ($item->deleted_at=='')
+ <span class="tooltip-wrapper"{!! (!$item->model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid_fix').'"' : '') !!}>
+ <a href="{{ $route }}" class="btn btn-sm btn-primary hidden-print{{ (!$item->model ? ' disabled' : '') }}" data-tooltip="true" title="{{ trans('general.audit') }}">
+ <x-icon type="audit" class="fa-fw"/>
+ @if ($wide=='true')
+ {{ trans('general.audit') }}
+ @endif
+ </a>
+ </span>
+ @endif
@endcan