@extends('layouts.app') @section('title', 'Transcripts') @section('page-title', 'Transcripts') @section('content')
All Conversations from ElevenLabs
@forelse($conversations as $i => $conv) @php $convId = $conv['conversation_id'] ?? ''; $status = $conv['call_successful'] ?? $conv['status'] ?? 'unknown'; $duration = $conv['call_duration_secs'] ?? 0; $agentName = $conv['agent_name'] ?? 'Unknown'; $title = $conv['call_summary_title'] ?? 'โ€”'; $lang = $conv['main_language'] ?? 'โ€”'; $msgCount = $conv['message_count'] ?? 0; $startTime = $conv['start_time_unix_secs'] ?? null; $mins = intdiv($duration, 60); $secs = $duration % 60; $langLabel = match($lang) { 'ta' => '๐Ÿ‡ฎ๐Ÿ‡ณ Tamil', 'hi' => '๐Ÿ‡ฎ๐Ÿ‡ณ Hindi', 'te' => '๐Ÿ‡ฎ๐Ÿ‡ณ Telugu', 'ml' => '๐Ÿ‡ฎ๐Ÿ‡ณ Malayalam', 'kn' => '๐Ÿ‡ฎ๐Ÿ‡ณ Kannada', 'en' => '๐Ÿ‡ฌ๐Ÿ‡ง English', default => strtoupper($lang), }; // Match customer by finding call created closest to this conversation time $matchedCall = null; if ($startTime) { $matchedCall = $calls->filter(function($call) use ($startTime) { return abs($call->created_at->timestamp - $startTime) < 120; })->first(); } @endphp @empty @endforelse
# Title Agent Language Status Duration Messages Date
{{ $i + 1 }}
{{ $title }}
@if($matchedCall && $matchedCall->customer)
{{ strtoupper(substr($matchedCall->customer->customer_name, 0, 1)) }}
{{ $matchedCall->customer->customer_name }}
@endif
{{ $agentName }} {{ $langLabel }} @if($status === 'success') Success @elseif($status === 'failure' || $status === 'failed') Failed @else {{ ucfirst($status) }} @endif {{ $duration > 0 ? $mins.'m '.$secs.'s' : 'โ€”' }} {{ $msgCount }} @if($startTime) {{ \Carbon\Carbon::createFromTimestamp($startTime)->format('d M Y, h:i A') }} @else โ€” @endif View
No conversations found.
@endsection @push('scripts') @endpush