@extends('layouts.app') @section('title', 'Employee Ticket Details - ' . $employee->name) @section('content')
All Reports - Monthly Data
| Month | @foreach($reportTypes as $reportType){{ $reportType }} | @endforeach
|---|---|
| @php // Generate URL for month details $monthStart = $month['start']->format('Y-m-d'); $monthEnd = $month['end']->format('Y-m-d'); $monthDetailsUrl = route('reseller-tickets.employee-month-details', [ 'employeeId' => $employee->id, 'monthStart' => $monthStart, 'monthEnd' => $monthEnd ]); @endphp {{ $month['name'] }} | @foreach($reportTypes as $reportType)@if(isset($month['counts'][$reportType]) && $month['counts'][$reportType] !== '-') @if($reportType === 'Average Rating') {{ $month['counts'][$reportType] }} ⭐ @elseif(in_array($reportType, ['Average Assign Time', 'Average Forwarded Time', 'Average Solved Time'])) {{ $month['counts'][$reportType] }} @else {{ $month['counts'][$reportType] }} @endif @else - @endif | @endforeach
| Summary | @foreach($reportTypes as $reportType)@if(isset($summary[$reportType]) && $summary[$reportType] !== '-') @if($reportType === 'Average Rating') {{ $summary[$reportType] }} ⭐ @elseif(in_array($reportType, ['Average Assign Time', 'Average Forwarded Time', 'Average Solved Time'])) {{ $summary[$reportType] }} @else {{ $summary[$reportType] }} @endif @else - @endif | @endforeach