diff --git a/resources/views/components/header.blade.php b/resources/views/components/header.blade.php index 38a15af..b3dd290 100644 --- a/resources/views/components/header.blade.php +++ b/resources/views/components/header.blade.php @@ -18,62 +18,79 @@ @if(Auth::check()) -
-
- @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'; - } - @endphp - Avatar +
+
+
+ @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'; + } + @endphp + Avatar +
+ + + +
- @endif
- @if(Auth::check()) -