@php
$authIsAdminInGroup= $participant?->isAdmin();
$authIsOwner= $participant?->isOwner();
$isGroup= $conversation?->isGroup();
$activeProfileType = getActiveProfileType();
$activeProfile = getActiveProfile();
$showSyncButton = ($authIsAdminInGroup || $authIsOwner)
&& in_array($activeProfileType, ['Organization', 'Bank', 'Admin'])
&& $activeProfile !== null;
@endphp
{{-- Sync confirmation modal --}}
@if($showSyncButton)
{{ __('Sync members') }}
{{ __('This will remove all members that are currently not linked to :name.', ['name' => $activeProfile->name]) }}
{{ __('Cancel') }}
{{ __('Sync') }}
{{ __('Syncing...') }}
@endif
{{__('wirechat::chat.group.members.heading.label')}}
{{-- Sync linked members button --}}
@if($showSyncButton)
@endif
{{-- Search --}}
{{--
Recent Chats
--}}
@if (count($participants)!=0)
@foreach ($participants as $key => $participant)
@php
$loopParticipantIsAuth =
$participant->participantable_id == auth()->id() &&
$participant->participantable_type == auth()->user()->getMorphClass();
@endphp
-
@endforeach
{{-- Load more button --}}
@if ($canLoadMore)
@endif
@else
{{__('wirechat::chat.group.members.labels.no_members_found')}}
@endif