Showing profile image when customer login
This commit is contained in:
parent
d28d1a693b
commit
cef68ce115
|
|
@ -98,7 +98,11 @@
|
|||
|
||||
<li>
|
||||
<span class="dropdown-toggle">
|
||||
<i class="icon account-icon"></i>
|
||||
@if( auth()->guard('customer')->user() && auth()->guard('customer')->user()->image)
|
||||
<i style="vertical-align: top;"><img style="width:20px;margin-right:5px;height:20px;border-radius:50%;" src="{{ auth('customer')->user()->image_url }}" alt="{{ auth('customer')->user()->first_name }}"/></i>
|
||||
@else
|
||||
<i class="icon account-icon"></i>
|
||||
@endif
|
||||
|
||||
<span class="name">{{ __('shop::app.header.account') }}</span>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,11 @@
|
|||
|
||||
<div id="account">
|
||||
<div class="d-inline-block welcome-content dropdown-toggle">
|
||||
<i class="material-icons align-vertical-top">perm_identity</i>
|
||||
|
||||
@if( auth()->guard('customer')->user() && auth()->guard('customer')->user()->image)
|
||||
<i class="align-vertical-top"><img style="width:20px;margin-right:5px;height:20px;border-radius:50%;" src="{{ auth('customer')->user()->image_url }}" alt="{{ auth('customer')->user()->first_name }}"/></i>
|
||||
@else
|
||||
<i class="material-icons align-vertical-top">perm_identity</i>
|
||||
@endif
|
||||
<span class="text-center">
|
||||
{{ __('velocity::app.header.welcome-message', [
|
||||
'customer_name' => auth()->guard('customer')->user()
|
||||
|
|
|
|||
Loading…
Reference in New Issue