@extends('layouts.app')
@section('title', 'Repartition Priorites')
@section('styles')
@endsection
@section('content')
Repartition par Priorite
Distribution des priorites par categorie et agent
@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
| Categorie | Total | Basse | Normale | Haute | Urgente |
@forelse($byCategory->take(20) as $cat)
@php $bd=$cat['breakdown']; @endphp
| {{ $cat['name'] }} |
{{ $cat['total'] }} |
@foreach(['Basse','Normale','Haute','Urgente'] as $pl)
{{ $bd->firstWhere('label',$pl)['total'] ?? 0 }} |
@endforeach
@empty| Aucune donnee |
@endforelse
Par agent
| Agent | Total | Basse | Normale | Haute | Urgente |
@forelse($byAgent->take(15) as $ag)
@php $bd=$ag['breakdown']; @endphp
| {{ $ag['name'] }} |
{{ $ag['total'] }} |
@foreach(['Basse','Normale','Haute','Urgente'] as $pl)
{{ $bd->firstWhere('label',$pl)['total'] ?? 0 }} |
@endforeach
@empty| Aucune donnee |
@endforelse
@endsection
@section('scripts')
@endsection