complete this '@extends('layouts.app') @section('title', 'Chat - Teacher Panel') @push('styles') @endpush @section('content')

Welcome, {{ auth()->user()->username }}!

Teacher Chat Panel - Communicate with students, managers, and colleagues

{{ $batches->count() }} Batches {{ $students->count() }} Students {{ $managers->count() }} Managers
Online
Last seen: Just now
Quick Actions
Today's Schedule
09:00 AM - 10:00 AM
Mathematics
Batch 10-A
11:00 AM - 12:00 PM
Physics
Batch 10-B
02:00 PM - 03:00 PM
Chemistry
Batch 10-C
Online Colleagues
Loading...
Recent Conversations
Loading conversations...
@if($conversation)
@if($conversation->conversation_type === 'direct')
{{ substr($conversation->title ?? 'U', 0, 1) }}
@else
{{ substr($conversation->title ?? 'G', 0, 1) }}
@endif Online
{{ $conversation->title ?? 'Chat' }}
@if($conversation->conversation_type === 'direct') Student @elseif($conversation->conversation_type === 'batch') Batch @else Group @endif Online
Loading messages...
@else

Teacher Chat Center

Select a conversation or start a new chat with students, managers, or colleagues

0
Online Now
0
Unread Messages
0
Active Chats
@endif
My Students
@foreach($students->take(10) as $student)
{{ substr($student['username'], 0, 1) }}
{{ $student['username'] }}
{{ $student['institute_id'] ?? 'Student' }}
@endforeach @if($students->count() > 10) @endif
Managers
@foreach($managers as $manager)
{{ substr($manager->username, 0, 1) }}
{{ $manager->username }}
LMS Manager
@endforeach
Colleagues
@foreach($all_teachers as $teacher) @if($teacher->id != auth()->id())
{{ substr($teacher->username, 0, 1) }}
{{ $teacher->username }}
Teacher
@endif @endforeach
@endsection @push('scripts') @emdpush