CLI Admin
@php $profileImage = 'assets/images/users/avatar-1.jpg'; $userName = session('adminFullName', 'User'); $initials = 'U'; if (!empty($userName) && $userName !== 'User') { $nameParts = explode(' ', trim($userName)); if (count($nameParts) >= 2) { $initials = strtoupper(substr($nameParts[0], 0, 1) . substr($nameParts[count($nameParts) - 1], 0, 1)); } else { $initials = strtoupper(substr($nameParts[0], 0, 2)); } } // Check if image exists, if not use fallback $imagePath = public_path($profileImage); $imageExists = file_exists($imagePath); @endphp @if($imageExists)
@else
@endif
{{ $initials }}
{{ $userName }}
Welcome!
Profile
Password Change
Logout
Menu
Recent
Leader
Product
Recent Inventory
Orders