@extends('layouts.app') @section('title', 'Call Logs') @section('page-title', 'Call Logs') @section('content')
All Calls
@foreach($calls as $call) @endforeach
#CustomerProductCall ID StatusFeedbackDurationDate
{{ $call->id }}
{{ strtoupper(substr($call->customer->customer_name ?? '?', 0, 1)) }}
{{ $call->customer->customer_name ?? '—' }}
{{ $call->customer->product_name ?? '—' }} {{ $call->call_id ? substr($call->call_id, 0, 20) . '…' : '—' }} @php $sc = match(true) { $call->status === 'completed' => 'completed', in_array($call->status, ['failed','no-answer']) => 'failed', default => 'calling' }; @endphp {{ ucfirst($call->status) }} @if($call->sentiment) {{ ucfirst($call->sentiment) }} @else @endif {{ $call->formatted_duration }} {{ $call->created_at->format('d M Y, h:i A') }}
@endsection @push('scripts') @endpush