@php $hours = floor(($answers->sum('answer_time') / 3600)); $minutes = floor(($answers->sum('answer_time') % 3600)/60); $sec = round(($answers->sum('answer_time') % 3600)%60); $time_call = ($hours > 0 ? $hours . ' giờ ' : '').($minutes > 0 ? $minutes . ' phút ' : '') . ($sec > 0 ? $sec . ' giây' : ''); @endphp
Tổng cuộc gọi : {{@$docs->total()}}
Tổng khách nghe máy: {{$answers->count()}} ({{$time_call}})
Tổng gọi lỡ : {{$docs->total()-$answers->count()}}
@if (count($docs)) @foreach($docs as $doc) @if(auth()->user()->permission('call-center.listen')) @else @endif @endforeach @else @endif
Khách hàng Nhân viên Trạng thái c.gọi Thời gian Ghi âm
{{@$doc->customer->full_name?:'Số máy lạ'}}
{{@$doc->dest_number}}
{{@$doc->user->full_name?:'Nhân viên lạ'}}
(Số máy lẻ: {{@$doc->caller_number}})
{!!@$doc->call_status=='ANSWERED'?'Nghe máy': 'Gọi lỡ' !!} {{date('d-m-Y H:i',strtotime($doc->start_time))}}
{{@$doc->expired_text}}
{{!empty($doc->after_time)?'Sau '.$doc->after_time:''}}
@if($doc->recording_url !='None')
@endif
Không tồn tại dữ liệu
{{ 'Tổng số ' . $docs->total() . ' cuộc gọi ' . (request()->search ? 'found' : '') }}
{{ $docs->appends(['search' => request()->search ])->links() }}