@php
$defaultPhoto = asset('assets/images/user-grid/user-grid-img14.png');
$userPhoto = auth()->user()->profile_photo
? asset('storage/profile_photos/' . auth()->user()->profile_photo)
: $defaultPhoto;
@endphp
{{ auth()->user()->name ?? 'User' }}
{{ auth()->user()->email ?? 'email@example.com' }}
@if (auth()->user()->roles->count() > 0)
@foreach (auth()->user()->roles as $role)
{{ $role->name }}
@endforeach
@endif
Informasi Akun
Bergabung:
{{ auth()->user()->created_at->format('d/m/Y') }}