@extends('backEnd.layouts.master') @section('title', 'Moderator Reports') @push('styles') @endpush @section('content')

Moderator Reports

Duty time, screen time, replies & performance — moderator wise
Call Tracking Dismiss History Website Inquiry Inbox
Reset
Total Replies
{{ $totals['replies'] }}
Total Screen Time
{{ $reports->formatDuration($totals['screen_seconds']) }}
Scheduled Duty
{{ $reports->formatDuration($totals['scheduled_seconds']) }}
Online During Duty
{{ $reports->formatDuration($totals['online_in_duty']) }}
@foreach(['green' => 'success', 'yellow' => 'warning', 'orange' => '', 'red' => 'danger'] as $color => $bs)
{{ ucfirst($color) }} Replies
{{ $colorBreakdown[$color] ?? 0 }}
@endforeach
Moderator Wise Report Click Details for full duty & session log
@forelse($moderatorRows as $row) @php $pct = $row['duty_compliance']; $pctClass = $pct >= 80 ? 'compliance-high' : ($pct >= 50 ? 'compliance-mid' : 'compliance-low'); @endphp @empty @endforelse
Moderator Screen Time Duty (Scheduled) On Duty Screen Duty % Replies Avg Reply G/Y/O/R Sessions Resolved Hub CRM Avg Order→Call
{{ $row['moderator']->name }}
{{ $row['moderator']->user?->email }}
{{ $row['screen_label'] }} @if($row['first_online'])
First: {{ $row['first_online']->format('d M h:i A') }}
@endif
{{ $row['scheduled_label'] }} {{ $row['online_in_duty_label'] }} {{ $row['scheduled_seconds'] > 0 ? $pct . '%' : '—' }} {{ $row['total_replies'] }} {{ $reports->formatTime($row['avg_seconds']) }} {{ $row['green_count'] }} {{ $row['yellow_count'] }} {{ $row['orange_count'] }} {{ $row['red_count'] }} {{ $row['session_count'] }} {{ $row['resolved_count'] }} {{ $row['hub_calls'] ?? 0 }} {{ $row['crm_calls'] ?? 0 }} @if(isset($row['avg_order_response']) && $row['avg_order_response'] !== null) {{ $reports->formatTime($row['avg_order_response']) }}
order → call
@else — @endif
Details
No moderator data for this period.
Add moderators in Shifts and keep Support Inbox open to log screen time.
How duty % works: If shift is 3:00 PM – 6:00 PM, system checks how many minutes moderator had Support Inbox, Moderator Hub, or Chat open during that window. Heartbeat every 20 seconds logs screen sessions automatically. Hub & CRM calls are logged separately in the Hub/CRM columns. Avg Order→Call = order create থেকে প্রথম call start — কতক্ষণ লেগেছে (Hub call log থেকে)।
@endsection