@extends('layouts.app') @section('title', 'Conversation – Instagram Bot') @section('content')

← Conversations · Instagram Bot

Conversation: @if ($conversation->ig_profile_username) {{ '@' . ltrim($conversation->ig_profile_username, '@') }} @else {{ $conversation->ig_user_id }} @endif @if ($conversation->ig_profile_username) ({{ $conversation->ig_user_id }}) @endif

State: {{ $conversation->state }} · Last activity: {{ $conversation->last_message_at ? $conversation->last_message_at->format('Y-m-d H:i') : '—' }}

← Back to list
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@endif

Update conversation

@csrf @method('PUT')

Message thread

@if ($messages->isEmpty())

No messages yet.

@else
@foreach ($messages as $m)
{{ $m->direction === 'in' ? 'Incoming' : 'Outgoing' }} · {{ $m->created_at->format('Y-m-d H:i:s') }} @if (($m->response_source ?? '') === 'ai') · AI @endif
{{ $m->text }}
@endforeach
@endif
@push('styles') @endpush @endsection