Fixed Contact show logo issue ( #3rw8ttj )
This commit is contained in:
parent
8a8f33fef2
commit
e1f655c265
@ -6,7 +6,17 @@
|
|||||||
<x-show.summary.left>
|
<x-show.summary.left>
|
||||||
@if (! $hideAvatar)
|
@if (! $hideAvatar)
|
||||||
<x-slot name="avatar">
|
<x-slot name="avatar">
|
||||||
|
@if ($contact->logo)
|
||||||
|
@if (is_object($contact->logo))
|
||||||
|
<img src="{{ Storage::url($contact->logo->id) }}" class="absolute w-12 h-12 rounded-full mr-2 hidden lg:block" alt="{{ $contact->name }}" title="{{ $contact->name }}">
|
||||||
|
@else
|
||||||
|
<img src="{{ asset('public/img/user.svg') }}" class="absolute w-12 h-12 rounded-full mr-2 hidden lg:block" alt="{{ $contact->name }}"/>
|
||||||
|
@endif
|
||||||
|
|
||||||
{{ $contact->initials }}
|
{{ $contact->initials }}
|
||||||
|
@else
|
||||||
|
{{ $contact->initials }}
|
||||||
|
@endif
|
||||||
</x-slot>
|
</x-slot>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user