{{-- --}}
{{-- Get backend user data with php code in blade template --}} @php use App\Models\Backend\BackendUser; $user = BackendUser::find(auth()->id()); // atau Sentinel kalau kau guna itu @endphp
@if($user->profile_picture) {{ $user->username }} @else
{{ strtoupper(substr($user->first_name ?? $user->username ?? 'U', 0, 1)) }}
@endif
{{ $user->last_name ?? '-' }}
{{ ($user?->first_name ?? '-') . ' ' . ($user?->last_name ?? '-') }} {{ $user->email ?? '-' }}
@csrf