@extends('backend.layouts.admin.app') @section('content')

{{$title}}

@include('backend.layouts.alert')
    @forelse($allChats as $chat)
  • @if($chat->profilePicUrl) {{ $chat->displayName }} @else
    {{ strtoupper(substr($chat->displayName, 0, 1)) }}
    @endif
    {{ $chat->displayName }} @if($chat->isOnline) @endif
    @if($chat->lastMessageSenderName && $chat->isGroup) {{ $chat->lastMessageSenderName }}: @endif {{ $chat->lastMessage }}
    @if($chat->lastMessageTime) {{ \Carbon\Carbon::parse($chat->lastMessageTime)->format('h:i A') }} @endif @if($chat->unreadCount > 0) {{ $chat->unreadCount }} @endif
  • @empty
  • No chats found.
  • @endforelse
    @forelse($unreadChats as $chat)
  • @if($chat->profilePicUrl) {{ $chat->displayName }} @else
    {{ strtoupper(substr($chat->displayName, 0, 1)) }}
    @endif
    {{ $chat->displayName }} @if($chat->isOnline) @endif
    @if($chat->lastMessageSenderName && $chat->isGroup) {{ $chat->lastMessageSenderName }}: @endif {{ $chat->lastMessage }}
    @if($chat->lastMessageTime) {{ \Carbon\Carbon::parse($chat->lastMessageTime)->format('h:i A') }} @endif @if($chat->unreadCount > 0) {{ $chat->unreadCount }} @endif
  • @empty
  • No unread chats.
  • @endforelse
    @forelse($readChats as $chat)
  • @if($chat->profilePicUrl) {{ $chat->displayName }} @else
    {{ strtoupper(substr($chat->displayName, 0, 1)) }}
    @endif
    {{ $chat->displayName }} @if($chat->isOnline) @endif
    @if($chat->lastMessageSenderName && $chat->isGroup) {{ $chat->lastMessageSenderName }}: @endif {{ $chat->lastMessage }}
    @if($chat->lastMessageTime) {{ \Carbon\Carbon::parse($chat->lastMessageTime)->format('h:i A') }} @endif @if($chat->unreadCount > 0) {{ $chat->unreadCount }} @endif
  • @empty
  • No read chats.
  • @endforelse
Select a chat to start messaging

Select a chat from the left to view messages

@endsection