@props(['multiLang' => true]) @php if(!empty(auth()?->user()?->profile->image) && Storage::disk(getStorageDisk())->exists(auth()?->user()?->profile?->image)) { $userImage = resizedImage(auth()?->user()?->profile?->image, 36, 36); } else { $userImage = setting('_general.default_avatar_for_user') ? url(Storage::url(setting('_general.default_avatar_for_user')[0]['path'])) : resizedImage('placeholder.png', 36, 36); } @endphp @props(['showCart' => true, 'showMessage' => true])
@if($multiLang) @endif @if($showCart) @role('student') @endrole @endif @if($showMessage) @hasanyrole('tutor|student') @php $message = getUnreadMsgsCount(); @endphp @if($message > 0) {{ $message }} @endif @endif @endhasanyrole