diff --git a/public/images/avatar.png b/public/images/avatar.png new file mode 100644 index 0000000..175370f Binary files /dev/null and b/public/images/avatar.png differ diff --git a/resources/views/components/sidebar.blade.php b/resources/views/components/sidebar.blade.php index 2c2ce74..c426852 100644 --- a/resources/views/components/sidebar.blade.php +++ b/resources/views/components/sidebar.blade.php @@ -55,9 +55,7 @@ @php $avatarUrl = Auth::check() && Auth::user()->avatar ? Auth::user()->avatar - : (Auth::check() && Auth::user()->name - ? 'https://api.dicebear.com/7.x/notionists/svg?seed=' . urlencode(Auth::user()->name) . '&backgroundColor=e2e8f0' - : asset('images/avatar.png')); + : asset('images/avatar.png'); $deptName = 'Product Team'; if (Auth::check()) { diff --git a/resources/views/user/partials/ranking_list.blade.php b/resources/views/user/partials/ranking_list.blade.php index dd08df9..1e6e364 100644 --- a/resources/views/user/partials/ranking_list.blade.php +++ b/resources/views/user/partials/ranking_list.blade.php @@ -15,7 +15,7 @@ rank="{{ $item->rank }}" name="{{ $item->name }}" team="{{ $teamName }}" - avatar="{{ $item->avatar ?? 'https://api.dicebear.com/7.x/notionists/svg?seed=' . urlencode($item->name) . '&backgroundColor=bfdbfe' }}" + avatar="{{ $item->avatar ? $item->avatar : asset('images/avatar.png') }}" score="{{ $item->score }}" unit="thẻ" :isCurrent="$item->msnv == Auth::user()->msnv" @@ -45,7 +45,7 @@ rank="{{ $currentUserRankItem->rank > 0 ? $currentUserRankItem->rank : '-' }}" name="{{ $currentUserRankItem->name }}" team="{{ $currTeamName }}" - avatar="{{ $currentUserRankItem->avatar ?? 'https://api.dicebear.com/7.x/notionists/svg?seed=' . urlencode($currentUserRankItem->name) . '&backgroundColor=bfdbfe' }}" + avatar="{{ $currentUserRankItem->avatar ? $currentUserRankItem->avatar : asset('images/avatar.png') }}" score="{{ $currentUserRankItem->score }}" unit="thẻ" :isCurrent="true"