@extends('admin.layouts.layout') @section('title', 'Call History') @section('content')
Call History Open Dialer
@forelse($logs as $log) @empty @endforelse
Date Agent To Number Direction Status Duration Disposition Recording
{{ $log->created_at->format('M d, Y H:i') }} {{ $log->agent?->name ?? '--' }} {{ $log->to_number }} {{ ucfirst($log->direction) }} @php $sc = match($log->status) { 'completed' => 'success', 'failed' => 'danger', 'busy', 'no-answer' => 'warning', default => 'secondary' }; @endphp {{ ucfirst($log->status ?? '--') }} {{ $log->duration_formatted }} {{ $log->disposition ? ucwords(str_replace('-', ' ', $log->disposition)) : '--' }} @if($log->recording_url) Play @else -- @endif
No calls yet.
@endsection