@extends('layouts.admin-club') @section('club-admin-content')

Messages

Communicate with your members

@if(isset($conversations) && count($conversations) > 0) @foreach($conversations as $conversation)
@if($conversation->user->profile_picture) @else
{{ strtoupper(substr($conversation->user->full_name ?? 'U', 0, 1)) }}
@endif

{{ $conversation->user->full_name ?? 'Unknown' }}

{{ $conversation->last_message_at ? $conversation->last_message_at->diffForHumans(null, true) : '' }}

{{ $conversation->last_message ?? 'No messages yet' }}

@if($conversation->unread_count > 0) {{ $conversation->unread_count }} @endif
@endforeach @else

No conversations yet

@endif
Select a conversation

Choose a conversation from the list to start messaging

@endsection