@extends('layouts.app') @section('title', 'Repartition Priorites') @section('styles') @endsection @section('content')

Repartition par Priorite

Distribution des priorites par categorie et agent

Retour
@php $totalT=$overallDistribution->sum('total'); $colors=['#10b981','#3b82f6','#f59e0b','#ef4444']; @endphp
@foreach($overallDistribution as $i=>$p)
{{ strtoupper($p['label']) }}
{{ $p['total'] }}
@endforeach
Repartition globale
@foreach($overallDistribution as $i=>$p) {{ $p['label'] }} ({{ $p['total'] }})@endforeach
Temps moyen de resolution par priorite
@php $maxPR=$priorityResolution->max('avg_hours')?:1; @endphp @forelse($priorityResolution as $i=>$pr)
{{ $pr['label'] }}
{{ $pr['avg_hours'] }}h({{ $pr['total'] }} tickets)
@empty
Aucune donnee
@endforelse
Par categorie
@forelse($byCategory->take(20) as $cat) @php $bd=$cat['breakdown']; @endphp @foreach(['Basse','Normale','Haute','Urgente'] as $pl) @endforeach @empty@endforelse
CategorieTotalBasseNormaleHauteUrgente
{{ $cat['name'] }} {{ $cat['total'] }}{{ $bd->firstWhere('label',$pl)['total'] ?? 0 }}
Aucune donnee
Par agent
@forelse($byAgent->take(15) as $ag) @php $bd=$ag['breakdown']; @endphp @foreach(['Basse','Normale','Haute','Urgente'] as $pl) @endforeach @empty@endforelse
AgentTotalBasseNormaleHauteUrgente
{{ $ag['name'] }} {{ $ag['total'] }}{{ $bd->firstWhere('label',$pl)['total'] ?? 0 }}
Aucune donnee
@endsection @section('scripts') @endsection