From fc86eefeac5fae7f34239dd24729a8b9822306c8 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 20 Jul 2024 00:27:28 +0100 Subject: [PATCH] Show existing images on user edit page Signed-off-by: snipe --- resources/views/partials/forms/edit/image-upload.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/forms/edit/image-upload.blade.php b/resources/views/partials/forms/edit/image-upload.blade.php index fca1068844..6bc77aaee0 100644 --- a/resources/views/partials/forms/edit/image-upload.blade.php +++ b/resources/views/partials/forms/edit/image-upload.blade.php @@ -1,6 +1,6 @@ -@if (isset($item) && ($item->image) && ($item->image!='')) +@if (isset($item) && ($item->{($fieldname ?? 'image')}))
- + {!! $errors->first('image_delete', ':message') !!}