Upload beautify

This commit is contained in:
2026-02-17 17:14:43 +01:00
parent b053c0cc48
commit 41287914aa
106 changed files with 4948 additions and 906 deletions

View File

@@ -17,6 +17,17 @@
@csrf
@method('patch')
@php
$avatarHash = optional($user->profile)->avatar_hash;
$avatarInitialSrc = \App\Support\AvatarUrl::forUser((int) $user->id, $avatarHash, 128);
@endphp
<div
data-avatar-uploader="true"
data-upload-url="{{ route('avatar.upload') }}"
data-initial-src="{{ $avatarInitialSrc }}"
></div>
<div>
<x-input-label for="name" :value="__('Name')" />
<x-text-input id="name" name="name" type="text" class="mt-1 block w-full" :value="old('name', $user->name)" required autofocus autocomplete="name" />