Skip to content

Commit 7e06cd0

Browse files
committed
show profile picture on header and mobile menu header
1 parent ce99b29 commit 7e06cd0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/views/v2/partials/header-auth.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="relative" x-data="{ open: false }">
1212
<button @click="open = !open" @click.away="open = false"
1313
class="flex items-center gap-2 text-gray-700 dark:text-gray-100 hover:text-blue-600 dark:hover:text-pink-500 px-2 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/5 transition-all">
14-
<img src="https://placehold.co/32x32" alt="Profile" class="w-8 h-8 rounded-lg object-cover">
14+
<img src="{{ auth()->user()->profile_image_or_default }}" alt="{{ auth()->user()->name }}" class="w-8 h-8 rounded-lg object-cover">
1515
<span>{{auth()->user()->name}}</span>
1616
<i class="las la-angle-down transition-transform" :class="{ 'rotate-180': open }"></i>
1717
</button>

resources/views/v2/partials/mobile-menu.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@if(auth()->check())
1111
<div class="flex justify-between items-center p-6 border-b border-gray-200 dark:border-white/10">
1212
<div class="flex items-center gap-3">
13-
<img src="https://placehold.co/40x40" alt="Profile" class="w-10 h-10 rounded-lg object-cover">
13+
<img src="{{ auth()->user()->profile_image_or_default }}" alt="{{ auth()->user()->name }}" class="w-10 h-10 rounded-lg object-cover">
1414
<div>
1515
<div class="font-medium text-gray-900 dark:text-white">{{auth()->user()->name}}</div>
1616
<div class="text-sm text-gray-600 dark:text-gray-400">{{auth()->user()->email}}</div>

0 commit comments

Comments
 (0)