@extends('layouts.app') @section('title', 'Call Detail') @section('page-title', 'Call Detail') @section('topbar-actions') Back @endsection @section('content')
{{-- Customer Info --}}
Customer
{{ strtoupper(substr($call->customer->customer_name, 0, 1)) }}
{{ $call->customer->customer_name }}
{{ $call->customer->phone_number }}
@if($call->customer->feedback_text) @endif
Product {{ $call->customer->product_name }}
Feedback @if($call->customer->feedback) {{ ucfirst($call->customer->feedback) }} @else @endif
Answer {{ $call->customer->feedback_text }}
{{-- Call Info --}}
Call Info
Status @php $sc = match($call->status) { 'completed' => 'completed', 'failed', 'no-answer' => 'failed', default => 'calling' }; @endphp {{ ucfirst($call->status) }}
Sentiment @if($call->sentiment) {{ ucfirst($call->sentiment) }} @else @endif
Duration {{ $call->formatted_duration }}
Date {{ $call->created_at->format('d M Y, h:i A') }}
Call ID {{ $call->call_id ?? '—' }}
{{-- Summary --}} @if($call->summary)
Call Summary
{{ $call->summary }}
@endif {{-- Transcript --}}
Conversation Transcript {{ $call->messages->count() }} messages
@if($call->messages->count() > 0) @foreach($call->messages->sortBy('created_at') as $msg)
@if($msg->speaker === 'AI') AI Agent @else Customer @endif
{{ $msg->message }}
{{ $msg->created_at->format('h:i:s A') }}
@endforeach @else
No transcript available for this call.
@endif
@endsection