Fixed Contact show logo issue ( #3rw8ttj )

This commit is contained in:
Cüneyt Şentürk 2022-11-16 13:13:27 +03:00
parent 8a8f33fef2
commit e1f655c265

View File

@ -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