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 2929
3030 <div class =" form-group col-lg-8" >
3131 @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 ;" >
3333 @elseif (file_exists (base_path (" littlelink/images/" ). findFile (' avatar' )) )
3434 <img class =" rounded-avatar" src =" {{ asset (' littlelink/images/' . findFile (' avatar' )) } }" srcset =" {{ asset (' littlelink/images/avatar@2x.png 2x' ) } }" width =" 128px" height =" 128px" style =" object-fit : cover ;" >
3535 @else
3636 <img src =" {{ asset (' littlelink/images/logo.svg' ) } }" srcset =" {{ asset (' littlelink/images/avatar@2x.png 2x' ) } }" width =" 128px" height =" 128px" style =" object-fit : cover ;" >
3737 @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
3840 </div >
3941
4042 <!-- <div class="form-group col-lg-8">
4143 <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 } } ">
4345 </div>-->
4446
4547 <div class =" form-group col-lg-8" >
You can’t perform that action at this time.
0 commit comments