@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 = $v->total_chat > 0 ? round(($missed_chatss[$v->dt]->total_chat ?? 0) * 100 / $v->total_chat, 2) : 0; $totalChatTd .= '' . $v->total_chat . ' | '; $totalMissedChatTd .= '' . ($missed_chatss[$v->dt]->total_chat ?? 0) . ' | '; $totalMissedChatPercentTd .= '' . $percent . ' | '; if(!empty($dttm[$v->dt])) { $chatMissedTimeTd .= '' . implode(' ', $dttm[$v->dt]) . ' | ';
}
$totalChat += $v->total_chat;
$totalMissedChat += $missed_chatss[$v->dt]->total_chat ?? 0;
$totalMissedChatPercent += $percent;
$cnt++;
@endphp
@endforeach
|---|---|---|---|---|---|---|
| Total Chat | {{ $cnt > 0 ? round($totalChat / $cnt, 2) : '' }} | {!! $totalChatTd !!}|||||
| Total Chat Missed | {{ $cnt > 0 ? round($totalMissedChat / $cnt, 2) : '' }} | {!! $totalMissedChatTd !!}|||||
| Missed Chat % | {{ $cnt > 0 ? round($totalMissedChatPercent / $cnt, 2) : '' }} | {!! $totalMissedChatPercentTd !!}|||||
| {!! $chatMissedTimeTd !!} |
@foreach($chunk as $v)
@endforeach
| {{ $v->site_name == 'Smart ERP' ? 'RhysleyHR' : ($v->site_name ?? '') }} | ||||||||
|---|---|---|---|---|---|---|---|---|
| Total Message Send | {{ $qry2[$v->site_id]->total_messages ?? 0 }} | |||||||
| Total Message Received | {{ $v->total_messages ?? 0 }} | |||||||
| Total Unique Chat | {{ $chats[$v->site_id]->total_chat_count }} | |||||||
| Chat Missed | {{ $chats[$v->site_id]->chats->count() }} | |||||||
| Name | Sent Message | Unique Chat | ||||||
| {{ $atVal->user_name }} | {{ $atVal->total_messages }} | {{ $atVal->chatid_unique }} | ||||||
@endforeach