@if($community)
@if(!empty($categories) and count($categories)>0)
@foreach($categories as $group)
@if($community->present()->canViewCategory($group->id))
{!! Theme::section('messages.community-group', [
'group' => $group,
'communityId' => $community->id,
'communityConversationLabelMap' => $communityConversationLabelMap ?? [],
'communityConversationPosMap' => $communityConversationPosMap ?? [],
'communityUnreadCountMap' => $communityUnreadCountMap ?? [],
'communityMembersCountMap' => $communityMembersCountMap ?? [],
]) !!}
@endif
@endforeach
@endif
@if(count($groups)>0)
@foreach($groups as $group)
{!! Theme::section('messages.group', [
'group' => $group,
'groupConversationLabelMap' => $groupConversationLabelMap ?? [],
'groupConversationPosMap' => $groupConversationPosMap ?? [],
'groupUnreadCountMap' => $groupUnreadCountMap ?? [],
]) !!}
@endforeach
@endif
@else
@if(count($groups)>0)
@foreach($groups as $group)
{!! Theme::section('messages.group', [
'group' => $group,
'chatclass' => 'single-chat-date-view',
'groupConversationLabelMap' => $groupConversationLabelMap ?? [],
'groupConversationPosMap' => $groupConversationPosMap ?? [],
'groupUnreadCountMap' => $groupUnreadCountMap ?? [],
]) !!}
@endforeach
@endif
@endif