@php
$photoPath = $user->photo ?? null;
$version = optional($user->updated_at)->timestamp ?? time();
$photoUrl = $photoPath ? (route('media.show', ['path' => ltrim($photoPath, '/')]) . '?v=' . $version) : null;
$photoExists = $photoPath ? \Illuminate\Support\Facades\Storage::disk('public')->exists($photoPath) : false;
@endphp
@if($user->photo)

@else
{{ strtoupper(substr($user->name, 0, 1)) }}
![Profile]()
@endif
JPG, PNG, WEBP, HEIC (Max 16MB)
@error('photo')
{{ $message }}
@enderror