@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
{{ trans('site.posts') }}: {{ $cardUser->getTopicsPostsCount() }}
{{ trans('update.likes') }}: {{ $cardUser->getTopicsPostsLikesCount() }}
{{ trans('panel.followers') }}: {{ count($cardUser->followers()) }}
{{ trans('update.member_since') }}: {{ dateTimeFormat($cardUser->created_at,'j M Y') }}
{{ trans('update.location') }}: {{ $cardUser->getCountryAndState() }}
@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($post)) @include('admin.includes.delete_button', [ 'url' => getAdminPanelUrl().'/forums/'.$forum->id.'/topics/'.$topic->id.'/posts/'.$post->id.'/delete', 'btnText' => trans('admin/main.delete'), 'btnClass' => 'mr-3 font-14 font-weight-500 text-danger' ]) @else @include('admin.includes.delete_button', [ 'url' => getAdminPanelUrl().'/forums/'.$forum->id.'/topics/'.$topic->id.'/delete', 'btnText' => trans('admin/main.delete'), 'btnClass' => 'mr-3 font-14 font-weight-500 text-danger' ]) @endif @if(!$topic->close) @if(!empty($post)) @else {{ trans('public.edit') }} @endif @if(!empty($post)) @if($post->pin) @else @endif @endif @if(!empty($post)) @endif @endif
{{ !empty($post) ? $post->likes->count() : $topic->likes->count() }} {{ trans('update.likes') }}