@extends('layouts.app') @section('title', 'Chat Logs - Admin') @section('content')
@include('admin.partials.sidebar')

Chat Logs

Back
@foreach($conversations as $conv) @endforeach
Participants Last Message Time Status
{{ $conv->userOne?->name ?? '—' }} ↔ {{ $conv->userTwo?->name ?? '—' }} {{ Str::limit($conv->last_message_preview, 50) }} {{ $conv->last_message_at?->diffForHumans() ?? '—' }} {{ (int) $conv->user_one_unread + (int) $conv->user_two_unread }} unread
{{ $conversations->links() }}
@endsection