diff --git a/resources/views/list.blade.php b/resources/views/list.blade.php index ca8bc2851879..91d452f286e7 100644 --- a/resources/views/list.blade.php +++ b/resources/views/list.blade.php @@ -19,7 +19,7 @@ @endif @endcan - @if ($entityType == ENTITY_EXPENSE_CATEGORY) + @if (in_array($entityType, [ENTITY_EXPENSE_CATEGORY, ENTITY_PRODUCT])) {!! Button::normal(trans('texts.archive'))->asLinkTo('javascript:submitForm("archive")')->appendIcon(Icon::create('trash')) !!} @else {!! DropdownButton::normal(trans('texts.archive'))->withContents([