@extends('admin.layout')
@section('title', 'Sohbet Detayı')
@section('content')
@php
$users = $conversation->participants->map->user->filter();
$title = $users->pluck('name')->filter()->take(2)->implode(' · ') ?: 'Sohbet #'.$conversation->id;
@endphp
{{ $title }}
Sohbet #{{ $conversation->id }} · Görüntüleme audit log’a kaydedildi
← Listeye dön
@forelse($messages as $message)
{{ $message->user?->name ?? 'Bilinmeyen' }}
{{ $message->created_at?->format('d.m.Y H:i') }}
@if($message->trashed())
Silinmiş
@endif
@if($message->body)
{{ $message->body }}
@endif
@if($message->attachment_path)
@if($message->attachment_type === 'video')
Video ekini aç
@else
@endif
@endif
@if(! $message->body && ! $message->attachment_path)
(boş mesaj)
@endif
@empty
Bu sohbette mesaj yok.
@endforelse
@endsection