@extends('layouts.app') @section('title', 'Call Center - Registro de Interacciones') @section('content')

Call Center - Registro de Interacciones

Gestión y seguimiento de interacciones con clientes

@can('call-center.dashboard') Dashboard @endcan @can('call-center.create') Nueva Interacción @endcan @can('call-center.export')
@endcan
Total Interacciones
{{ $stats['total'] }}
Interacciones Hoy
{{ $stats['today'] }}
Seguimientos Vencidos
{{ $stats['pending_followups'] }}
Seguimientos Hoy
{{ $stats['today_followups'] }}
@if($stats['pending_followups'] > 0) @endif @if($stats['today_followups'] > 0) @endif
Lista de Interacciones
@if($logs->count() > 0)
@foreach($logs as $log) @endforeach
Fecha Cliente Tipo Agente Notas Estado Seguimiento Resultado Pago Programado Acciones
{{ $log->created_at->format('d/m/Y') }}
{{ $log->created_at->format('H:i') }}
{{ $log->client->business_name ?? 'N/A' }} @if($log->client)
{{ $log->client->phone ?? 'Sin teléfono' }} @endif
@php $typeColors = [ 'Llamada' => 'primary', 'Email' => 'info', 'Visita' => 'warning', 'Mensaje' => 'success', 'Reunión' => 'secondary', ]; $color = $typeColors[$log->interaction_type] ?? 'secondary'; @endphp {{ $log->interaction_type }} @if($log->duration)
{{ $log->duration }} @endif
{{ $log->user->name ?? 'N/A' }}

{{ \Illuminate\Support\Str::limit($log->notes, 50) }}

@php $statusColors = [ 'Completado' => 'success', 'No Contesta' => 'warning', 'Seguimiento' => 'info', 'Pendiente' => 'secondary', 'Rechazado' => 'danger', ]; $statusColor = $statusColors[$log->status] ?? 'secondary'; @endphp {{ $log->status }} @if($log->follow_up_date) @php $followUpDate = \Carbon\Carbon::parse($log->follow_up_date); $isPast = $followUpDate->isPast(); $isToday = $followUpDate->isToday(); @endphp {{ $followUpDate->format('d/m/Y H:i') }} @else - @endif @if($log->outcome) {{ $log->outcome }} @else - @endif @if($log->outcome === 'Pago Programado' && $log->scheduled_payment_date) @php $paymentDate = \Carbon\Carbon::parse($log->scheduled_payment_date); $isPast = $paymentDate->isPast(); $isToday = $paymentDate->isToday(); @endphp {{ $paymentDate->format('d/m/Y') }} @else - @endif
@can('call-center.show') @endcan @can('call-center.edit') @endcan @can('call-center.delete')
@csrf @method('DELETE')
@endcan
{{ $logs->links() }}
@else

No hay interacciones registradas

Comienza registrando tu primera interacción con un cliente.

Nueva Interacción
@endif
@endsection @push('scripts') @endpush