@extends('layouts.admin') @section('title', 'Conversación #' . $conversation->id) @section('content')
← Volver

Conversación #{{ $conversation->id }} @php $icons = ['web' => '🌐', 'whatsapp' => '📱', 'instagram' => '📸']; @endphp {{ $icons[$conversation->channel] ?? '💬' }}

{{-- Print PDF --}} Imprimir PDF {{-- Delete --}}
@csrf @method('DELETE')
{{-- Status badge --}} {{ ucfirst($conversation->status) }}
{{-- Chat Messages --}}
@foreach($conversation->messages as $msg) @if($msg->role === 'system')
{{ $msg->content }}
@elseif($msg->role === 'user')
{!! nl2br(e($msg->content)) !!}
{{ $msg->created_at->format('H:i') }}
@else
{!! nl2br(e($msg->content)) !!}
Olo • {{ $msg->created_at->format('H:i') }} @if($msg->intent) [{{ $msg->intent }}] @endif
@endif @endforeach
{{-- Sidebar Info --}}

Visitante

Nombre: {{ $conversation->visitor_name ?? 'No proporcionado' }}
Email: {{ $conversation->visitor_email ?? '-' }}
Phone: {{ $conversation->visitor_phone ?? '-' }}
Canal: {{ ucfirst($conversation->channel) }}
Producto: {{ $conversation->product_context ?? 'general' }}
IP: {{ $conversation->visitor_ip ?? '-' }}
Fecha: {{ $conversation->created_at->format('d/m/Y H:i') }}
@if($conversation->ticket)

🎫 Ticket Asociado

{{ $conversation->ticket->ticket_no }} — {{ $conversation->ticket->status }}

@endif
@endsection