File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 29
29
30
30
<div class =" form-group col-lg-8" >
31
31
@if (file_exists (base_path (" img/" . $user -> id . " .png" )) )
32
- <img src =" {{ asset (" img/" . $user -> id . " .png" ) } }" srcset =" {{ asset (" img/$user -> littlelink_name " . " @2x .png 2x" ) } }" width =" 128px" height =" 128px" style =" object-fit : cover ;" >
32
+ <img src =" {{ asset (" img/" . $user -> id . " .png" ) } }" srcset =" {{ asset (" img/$user -> id " . " @2x .png 2x" ) } }" width =" 128px" height =" 128px" style =" object-fit : cover ;" >
33
33
@elseif (file_exists (base_path (" littlelink/images/" ). findFile (' avatar' )) )
34
34
<
img class =
" rounded-avatar" src =
" {{ asset (' littlelink/images/' . findFile (' avatar' )) } }" srcset =
" {{ asset (' littlelink/images/[email protected] 2x' ) } }" width =
" 128px" height =
" 128px" style =
" object-fit : cover ;" >
35
35
@else
36
36
<
img src =
" {{ asset (' littlelink/images/logo.svg' ) } }" srcset =
" {{ asset (' littlelink/images/[email protected] 2x' ) } }" width =
" 128px" height =
" 128px" style =
" object-fit : cover ;" >
37
37
@endif
38
+ @if (file_exists (base_path (" img/" . $user -> id . " .png" )) )<br ><a title =" Remove icon" class =" hvr-grow p-1 text-danger" style =" padding-left :5px ;" href =" ?delete" ><i class =" bi bi-trash-fill" ></i > Delete</a >@endif
39
+ @if ($_SERVER [' QUERY_STRING' ] === ' delete' and File:: exists (base_path (' img/' . $user -> id . ' .png' )) )@php File:: delete (base_path (' img/' . $user -> id . ' .png' )); header (" Location: " . url ()-> current ()); die (); @endphp @endif
38
40
</div >
39
41
40
42
<!-- <div class="form-group col-lg-8">
41
43
<label>Littlelink name </label>
42
- <input type="text" class="form-control" name="littlelink_name" value="{{ $user -> littlelink_name } } ">
44
+ <input type="text" class="form-control" name="littlelink_name" value="{{ $user -> id } } ">
43
45
</div>-->
44
46
45
47
<div class =" form-group col-lg-8" >
You can’t perform that action at this time.
0 commit comments