@if(!empty($userBadges) and count($userBadges))
@foreach($userBadges as $userBadge)
{{ !empty($userBadge->badge_id) ? $userBadge->badge->title : $userBadge->title }} {{ !empty($userBadge->badge_id) ? $userBadge->badge->title : $userBadge->title }} {!! (!empty($userBadge->badge_id) ? nl2br($userBadge->badge->description) : nl2br($userBadge->description)) !!}
@endforeach
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'badge.png', 'title' => trans('site.instructor_not_have_badge'), 'hint' => '', ]) @endif