@extends('layouts.sidebar') @section('content')

Edit User

@foreach($user as $user)
@csrf
@if(file_exists(base_path("img/" . $user->id . ".png"))) id . ".png") }}" srcset="{{ asset("img/$user->id" . "@2x.png 2x") }}" width="128px" height="128px" style="object-fit: cover;"> @elseif(file_exists(base_path("littlelink/images/").findFile('avatar'))) @else @endif @if(file_exists(base_path("img/" . $user->id . ".png")))
Delete@endif @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

@if(!file_exists(base_path('/img/background-img/'.findBackground($user->id))))

No image selected

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

{{ url('') }}/@
@endforeach
@endsection