feature: send thankscard page
This commit is contained in:
@@ -23,13 +23,7 @@
|
||||
<div class="w-10 h-10 rounded-full overflow-hidden shrink-0 border border-gray-200">
|
||||
@php
|
||||
$avatarUrl = Auth::user()->avatar ? Auth::user()->avatar : asset('images/avatar.png');
|
||||
$deptVal = Auth::user()->departments;
|
||||
if (is_numeric($deptVal)) {
|
||||
$idx = ((int)$deptVal) - 1;
|
||||
$deptName = config('constants.DEPARTMENTS')[$idx] ?? 'Team';
|
||||
} else {
|
||||
$deptName = $deptVal ?? 'Team';
|
||||
}
|
||||
$deptName = Auth::user()->department_name ?? 'Team';
|
||||
@endphp
|
||||
<img src="{{ $avatarUrl }}" alt="Avatar" class="w-full h-full object-cover" onerror="this.onerror=null; this.src='{{ asset('images/avatar.png') }}';">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user