@php
/* Show header if any of these conditions are true */
$showHeader = $showNewChatModalButton || $allowChatsSearch || $showHomeRouteButton || !empty($title);
@endphp
{{-- include header --}}
@includeWhen($showHeader, 'wirechat::livewire.chats.partials.header')
= (scrollHeight - 1) && $wire.canLoadMore) {
// Trigger load more if we're at the bottom
await $nextTick();
$wire.loadMore();
}
"
class=" overflow-y-auto py-2 grow h-full relative " style="contain:content">
{{-- loading indicator --}}
@if (count($conversations) > 0)
{{-- include list item --}}
@include('wirechat::livewire.chats.partials.list')
{{-- include load more if true --}}
@includeWhen($canLoadMore, 'wirechat::livewire.chats.partials.load-more-button')
@else
{{ __('wirechat::chats.labels.no_conversations_yet') }}
@endif