@extends('layouts.app') @section('content')
@if($conversations->count() > 0)
@foreach($conversations as $conversation) @endforeach
ID Messenger User Messages Last Message Started Action
{{ $conversation->id }} {{ $conversation->messenger->name }} {{ $conversation->telegram_username ?? 'Unknown' }}
{{ $conversation->telegram_first_name }} {{ $conversation->telegram_last_name }}
{{ $conversation->messages_count }} @if($conversation->messages->first()) {{ Str::limit($conversation->messages->first()->content, 50) }}
{{ $conversation->messages->first()->created_at->diffForHumans() }} @else No messages yet @endif
{{ $conversation->created_at->format('d M Y H:i') }} View
{{ $conversations->links() }}
@else
No conversations yet.
@endif
@endsection