@php $cardUser = !empty($post) ? $post->user : $topic->creator; $cardUserBadges = $cardUser->getBadges(); @endphp
{{ $cardUser->full_name }}

{{ $cardUser->full_name }}

@if($cardUser->isUser()) {{ trans('quiz.student') }} @elseif($cardUser->isTeacher()) {{ trans('public.instructor') }} @elseif($cardUser->isOrganization()) {{ trans('home.organization') }} @elseif($cardUser->isAdmin()) {{ trans('panel.staff') }} @endif @if(!empty($cardUserBadges) and count($cardUserBadges))
@foreach($cardUserBadges as $badge)
{{ !empty($badge->badge_id) ? $badge->badge->title : $badge->title }}
@endforeach
@endif
@if($cardUser->getTopicsPostsCount() > 0)
{{ trans('site.posts') }}: {{ $cardUser->getTopicsPostsCount() }}
@endif @if($cardUser->getTopicsPostsLikesCount() > 0)
{{ trans('update.likes') }}: {{ $cardUser->getTopicsPostsLikesCount() }}
@endif @if(count($cardUser->followers()))
{{ trans('panel.followers') }}: {{ count($cardUser->followers()) }}
@endif
{{ trans('update.member_since') }}: {{ dateTimeFormat($cardUser->created_at,'j M Y') }}
@if(!empty($cardUser->getCountryAndState()))
{{ trans('update.location') }}: {{ $cardUser->getCountryAndState() }}
@endif
@if(!empty($post) and $post->pin) pin icon @endif
@if(!empty($post) and !empty($post->parent))
quote-right
{{ trans('update.reply_to') }} {{ $post->parent->user->full_name }}
{!! truncate($post->parent->description, 200) !!}
@endif
{!! !empty($post) ? $post->description : $topic->description !!}
@if(!empty($post) and !empty($post->attach)) @elseif(empty($post) and !empty($topic->attachments) and count($topic->attachments))
@foreach($topic->attachments as $attachment) {{ truncate($attachment->getName(),24) }} @endforeach
@endif
{{ dateTimeFormat(!empty($post) ? $post->created_at : $topic->created_at,'j M Y | H:i') }}
@if(!empty($authUser) and !$topic->close) @if($authUser->id == $cardUser->id) @if(!empty($post)) @else {{ trans('public.edit') }} @endif @endif @if(!empty($post) and $authUser->id == $topic->creator_id) @if($post->pin) @else @endif @endif @if(!empty($post)) @endif @endif
{{ !empty($post) ? $post->likes->count() : $topic->likes->count() }} {{ trans('update.likes') }}