@extends('layouts.app') @section('title', 'Temps de Resolution') @section('styles') @endsection @section('content')

Temps de Resolution

Duree moyenne par categorie et par agent

Retour
@php $avgH=$overallStats->avg_sec?round($overallStats->avg_sec/3600,1):'-'; $minH=$overallStats->min_sec?round($overallStats->min_sec/3600,1):'-'; $maxH=$overallStats->max_sec?round($overallStats->max_sec/3600,1):'-'; $totalR=$overallStats->total??0; @endphp
MOYENNE
{{ $avgH }}h
MIN
{{ $minH }}h
MAX
{{ $maxH }}h
RESOLUS
{{ $totalR }}
Distribution des temps
Par categorie
@php $maxC=$byCategory->max('avg_hours')?:1; @endphp @forelse($byCategory->take(10) as $c)
{{ Str::limit($c['name'],15) }}
{{ $c['avg_hours'] }}h
@empty
Aucune donnee
@endforelse
Par agent (meilleur en premier)
@forelse($byAgent->take(15) as $a) @empty@endforelse
AgentResolusMoy. ResolutionScore
{{ $a['name'] }} {{ $a['total'] }} {{ $a['avg_hours'] }}h @php $score=round($a['avg_hours']<=1?10:($a['avg_hours']<=4?8:($a['avg_hours']<=24?6:($a['avg_hours']<=72?4:2)))); @endphp {{ $score }}/10
Aucune donnee
@endsection @section('scripts') @endsection