@extends('layouts.dashboard') @section('title', 'المحادثات') @section('content')

💬 المحادثات

@if(request()->hasAny(['channel', 'intent', 'date'])) مسح الفلاتر @endif
@forelse($conversations as $conversation) lead) onclick="window.location.href='{{ route('leads.show', $conversation->lead->id) }}'" @endif title="{{ $conversation->lead ? 'عرض ملف العميل المرتبط' : 'لا يوجد عميل مرتبط' }}"> @empty @endforelse
القناة الرسالة اللغة النية الحالة التاريخ
@if($conversation->channel === 'whatsapp') 📱 واتساب @elseif($conversation->channel === 'messenger') 💬 ماسنجر @else 📷 انستغرام @endif

{{ Str::limit($conversation->text, 60) }}

@if($conversation->ai_response)

← {{ Str::limit($conversation->ai_response, 50) }}

@endif
{{ $conversation->language ?? '-' }} @if($conversation->dialect) ({{ $conversation->dialect }}) @endif @if($conversation->detected_intent) {{ $conversation->detected_intent }} @else - @endif @if($conversation->sent) ✓ تم الإرسال @elseif($conversation->ai_response) ⏳ في الانتظار @else 🔄 قيد المعالجة @endif {{ $conversation->created_at->format('Y-m-d H:i') }}
لا توجد محادثات بعد
{{ $conversations->appends(request()->query())->links() }}
@endsection