From 2744b2a243e4c9e36eef160b666f95c902154d87 Mon Sep 17 00:00:00 2001 From: Alireza Arjvand Date: Sat, 17 Apr 2021 13:09:56 +0430 Subject: [PATCH] Added parent info to recycle bin --- resources/lang/en/settings.php | 1 + .../views/settings/recycle-bin/index.blade.php | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/resources/lang/en/settings.php b/resources/lang/en/settings.php index ab7f15322..63d08e0e8 100755 --- a/resources/lang/en/settings.php +++ b/resources/lang/en/settings.php @@ -92,6 +92,7 @@ return [ 'recycle_bin' => 'Recycle Bin', 'recycle_bin_desc' => 'Here you can restore items that have been deleted or choose to permanently remove them from the system. This list is unfiltered unlike similar activity lists in the system where permission filters are applied.', 'recycle_bin_deleted_item' => 'Deleted Item', + 'recycle_bin_deleted_parent' => 'Parent', 'recycle_bin_deleted_by' => 'Deleted By', 'recycle_bin_deleted_at' => 'Deletion Time', 'recycle_bin_permanently_delete' => 'Permanently Delete', diff --git a/resources/views/settings/recycle-bin/index.blade.php b/resources/views/settings/recycle-bin/index.blade.php index b5de84efa..54420d0a2 100644 --- a/resources/views/settings/recycle-bin/index.blade.php +++ b/resources/views/settings/recycle-bin/index.blade.php @@ -39,7 +39,8 @@ - + + @@ -78,6 +79,16 @@ @endif +
{{ trans('settings.recycle_bin_deleted_item') }}{{ trans('settings.recycle_bin_deleted_item') }}{{ trans('settings.recycle_bin_deleted_parent') }} {{ trans('settings.recycle_bin_deleted_by') }} {{ trans('settings.recycle_bin_deleted_at') }} + @if($deletion->deletable->getParent()) +
+ @icon($deletion->deletable->getParent()->getType()) +
+ {{ $deletion->deletable->getParent()->name }} +
+
+ @endif +
@include('partials.table-user', ['user' => $deletion->deleter, 'user_id' => $deletion->deleted_by]) {{ $deletion->created_at }}