{{-- SR --}} @php $user = Auth::user(); $name = $user ? $user->emp_name : ''; $initials = ''; if (!empty($name)) { // Split the name by spaces $parts = explode(' ', $name); // Append the first character of each part to initials foreach ($parts as $part) { $initials .= strtoupper($part[0] ?? ''); } } @endphp {{ $initials }}
Logout