@extends('staff.layouts.app') @section('title', 'My Chats') @section('content') @php $slug = session('staff_school_slug'); @endphp

My Chats @if($isPrincipal ?? false) Principal @endif

@forelse($chatData as $chat)
{{ $chat['avatar_letter'] }}
@if($chat['unread_count'] > 0)
{{ $chat['unread_count'] }}
@endif

{{ $chat['name'] }} @if($chat['type'] == 'admin') Admin @elseif($chat['type'] == 'teacher') Teacher @endif

{{ $chat['last_time'] }}
@if(isset($chat['meta']))

{{ $chat['meta'] }}

@endif

{{ Str::limit($chat['last_message'], 60) }}

@empty

No Chats Found

Start a new conversation

@endforelse @if($chatData->hasPages())
{{ $chatData->links() }}
@endif
@endsection