@extends('layouts.app') @section('title', 'Customers') @section('page-title', 'Customers') @section('topbar-actions') @endsection @section('content') {{-- Campaign Bar --}}
| # | Customer | Phone | Product | Language | Call Status | Feedback | Customer Answer | Added | Action | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $c->id }} |
{{ strtoupper(substr($c->customer_name, 0, 1)) }}
{{ $c->customer_name }}
|
{{ $c->phone_number }}
|
{{ $c->product_name }} | {{ $c->language ?? 'English' }} |
@if($c->call_status === 'calling')
@endif
{{ ucfirst($c->call_status) }}
@if($c->latestCall?->failure_reason)
{{ Str::limit($c->latestCall->failure_reason, 80) }}
@endif
|
@php($displayedSentiment = $c->latestFeedbackCall?->sentiment ?: $c->feedback) @if($displayedSentiment === 'positive') Positive @elseif($displayedSentiment === 'negative') Negative @elseif($displayedSentiment === 'neutral') Neutral @elseif($c->latestFeedbackCall?->summary || $c->feedback_text || $c->feedback_summary) Feedback received @else Not called @endif | @php($displayedFeedback = $c->latestFeedbackCall?->summary ?: ($c->feedback_text ?: $c->feedback_summary)) @if($displayedFeedback) @else — @endif | {{ $c->created_at->format('d M Y') }} |