@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 }}
@php($customerFeedback = $call->customer->feedback_text ?: ($call->customer->feedback_summary ?: $call->summary)) @if($customerFeedback) @endif
Product {{ $call->customer->product_name }}
Feedback @php($customerSentiment = $call->customer->feedback ?: $call->sentiment) @if($customerSentiment) {{ ucfirst($customerSentiment) }} @else — @endif
Answer {{ $customerFeedback }}
{{-- Call Info --}}
Call Info
Status {{ 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 --}} @php($callSummary = $call->summary ?: $call->customer->feedback_summary) @if($callSummary)
Call Summary
{{ $callSummary }}
@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