@if(session()->has('message'))
@endif
@if(session()->has('error'))
@endif
{{ trans('labels.Successlabel') }}
{{ session()->get('message') }}{{ trans('labels.WarningLabel') }}
{{ session()->get('error') }}Date | Average | @php $totalChat = $totalMissedChat = $totalMissedChatPercent = $cnt = 0; $totalChatTd = $totalMissedChatTd = $totalMissedChatPercentTd = $chatMissedTimeTd = ''; @endphp @foreach($chatss as $k => $v){{ date('d-m-Y', strtotime($k)) }} | @php $percent = round($missed_chatss[$v->dt]->total_chat * 100 / $v->total_chat, 2); $totalChatTd .= '' . $v->total_chat . ' | '; $totalMissedChatTd .= '' . $missed_chatss[$v->dt]->total_chat . ' | '; $totalMissedChatPercentTd .= '' . $percent . ' | '; if(!empty($dttm[$v->dt])) { $chatMissedTimeTd .= '' . implode(' ', $dttm[$v->dt]) . ' | ';
}
$totalChat += $v->total_chat;
$totalMissedChat += $missed_chatss[$v->dt]->total_chat;
$totalMissedChatPercent += $percent;
$cnt++;
@endphp
@endforeach
---|---|---|---|---|---|---|
Total Chat | {{ round($totalChat / $cnt, 2) }} | {!! $totalChatTd !!}|||||
Total Chat Missed | {{ round($totalMissedChat / $cnt, 2) }} | {!! $totalMissedChatTd !!}|||||
Missed Chat % | {{ round($totalMissedChatPercent / $cnt, 2) }} | {!! $totalMissedChatPercentTd !!}|||||
{!! $chatMissedTimeTd !!} |