diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 0122096f80..74abfa24b2 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -279,7 +279,11 @@ + ' data-title="{{ trans('general.delete') }}" onClick="return false;">' + '{{ trans('general.delete') }} '; } else { - actions += ' '; + // Do not show the delete button on things that are already deleted + if ((row.available_actions) && (row.available_actions.restore != true)) { + actions += ' '; + } + }