From e4fb49195bb2b7ff72f04c55c3cc2fa82e62f308 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Fri, 28 Apr 2023 15:25:06 +0200 Subject: [PATCH] Update edit-user.blade.php --- resources/views/panel/edit-user.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/panel/edit-user.blade.php b/resources/views/panel/edit-user.blade.php index c9e62f0..8caee0f 100755 --- a/resources/views/panel/edit-user.blade.php +++ b/resources/views/panel/edit-user.blade.php @@ -57,7 +57,7 @@
@if(!file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))

No image selected

@endif - + @if(file_exists(base_path('assets/img/background-img/'.findBackground($user->id))))
Delete@endif @if($_SERVER['QUERY_STRING'] === 'deleteB' and File::exists(base_path('assets/img/background-img/'.findBackground($user->id))))@php File::delete(base_path('assets/img/background-img/'.findBackground($user->id))); header("Location: ".url()->current()); die(); @endphp @endif