@php $contactUser = $contactUser ?? null; $compact = $compact ?? false; $showContactDetails = $showContactDetails ?? ! $compact; $avatarSize = $compact ? '56x56' : '80x80'; $avatarUrl = $contactUser?->image ? custom_asset($contactUser->image, $avatarSize) : custom_asset($setting->default_avatar ?? '', $avatarSize); @endphp @if ($contactUser) {{ html_decode($contactUser->name) }} {{ html_decode($contactUser->name) }} @if ($showContactDetails) @if ($contactUser->email) {{ $contactUser->email }} @endif @if (filled($contactUser->phone)) {{ $contactUser->phone }} @endif @if (filled($contactUser->username)) {{ '@' . $contactUser->username }} @endif @endif @endif