@php
$photoPath = auth()->user()->photo ?? null;
$version = optional(auth()->user()->updated_at)->timestamp ?? time();
$photoUrl = $photoPath ? (route('media.show', ['path' => ltrim($photoPath, '/')]) . '?v=' . $version) : null;
@endphp
@if($photoUrl)

@else
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
@endif
{{ auth()->user()->name }}
{{ ucfirst(auth()->user()->role) }}