@extends('admin.layout') @section('title', 'Sohbetler') @section('content')

Sohbetler

İki üye arasındaki birebir mesajları inceleyin. Görüntüleme audit log’a yazılır.
@if($search !== '') Temizle @endif
@forelse($conversations as $conversation) @php $users = $conversation->participants->map->user->filter(); $last = $conversation->messages->first(); $preview = $last?->body; if (! $preview && $last?->attachment_type) { $preview = $last->attachment_type === 'video' ? 'Video' : 'Fotoğraf'; } @endphp @empty @endforelse
Katılımcılar Son mesaj Mesaj Son aktivite
@foreach($users as $u)
{{ $u->name }} #{{ $u->id }} · {{ $u->email }} {{ $u->is_active ? 'Aktif' : 'Pasif' }}
@endforeach
@if($last) {{ $last->user?->name }}: {{ \Illuminate\Support\Str::limit($preview ?: '—', 120) }} @else — @endif {{ $conversation->messages_count }} {{ ($conversation->last_message_at ?? $last?->created_at)?->format('d.m.Y H:i') ?: '—' }}
Henüz birebir sohbet yok.
@endsection