@foreach ($participants as $participant)
@if (array_search($participant->id, $users_present) !== false) @else @endif
{{--
{{$participant->first_name}} {{$participant->last_name}} @if($participant->hasRole(['business'])) ( {{$participant->business->business_name}} ) @endif @if ($users_present && array_search($participant->id, $users_present) !== false) Online @else Offline @endif
--}}
@if ($users_present && array_search($participant->id, $users_present) !== false) Online @else Offline @endif
@endforeach
{{-- tuka x-on:click="closeChatDetails = false" --}}
{{-- button to block user --}}
{{-- new test --}}
{{-- --------- new files uploaded ----------- --}}
@if($files_uploaded && count($files_uploaded) > 0) @foreach ($files_uploaded as $index => $new_file) @endforeach @endif
{{-- --------- end new files uploaded ----------- --}} @if( $messages && count($messages) > 0) @foreach ($messages as $index => $message) @if(!$message->message_body && count($message->files) == 0) @continue; @endif