From 439eec9015e137530e549a42aa48da9e70416912 Mon Sep 17 00:00:00 2001 From: antv Date: Wed, 8 Jul 2026 16:01:15 +0700 Subject: [PATCH] fix: restrict profile width and change logout modal to dropdown popup below avatar --- resources/views/components/header.blade.php | 103 ++++++++++++-------- 1 file changed, 60 insertions(+), 43 deletions(-) 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()) -