From 61053238777c38579c6188d2380f0cb7b99ae59e Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 21 Oct 2024 14:11:20 +0100 Subject: [PATCH] Use plural class name for src Signed-off-by: snipe --- resources/views/blade/filestable.blade.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/blade/filestable.blade.php b/resources/views/blade/filestable.blade.php index 8d258d606d..50c24dd6c9 100644 --- a/resources/views/blade/filestable.blade.php +++ b/resources/views/blade/filestable.blade.php @@ -9,9 +9,9 @@
+ @if (($file->filename) && (Storage::exists($filepath.$file->filename))) - @if (Helper::checkUploadIsImage($file->get_src($object))) + @if (Helper::checkUploadIsImage($file->get_src(str_plural(strtolower(class_basename(get_class($object))))))) @@ -88,6 +89,7 @@ {{ trans('general.file_not_found') }} @endif + {{ $file->filename }}