@extends('layouts.app') @section('title', 'Flux des Statuts') @section('styles') @endsection @section('content')

Flux des Statuts

Tickets créés vs résolus par jour

Retour
@php $totalCreated=$chartData->sum('created'); $totalResolved=$chartData->sum('resolved'); $pending=$totalCreated-$totalResolved; $avgH=$overallStats->avg_sec?round($overallStats->avg_sec/3600,1):'-'; @endphp
CRÉÉS
{{ $totalCreated }}
RÉSOLUS
{{ $totalResolved }}
EN ATTENTE
{{ $pending>0?$pending:0 }}
MOY. RÉSOLUTION
{{ $avgH }}h
Créés vs Résolus par jour
Répartition par statut
@php $sp=['#10b981','#f59e0b','#6366f1','#3b82f6','#ef4444','#8b5cf6','#06b6d4']; @endphp @foreach($statusDistribution as $i=>$s) {{ $s['name'] }} ({{ $s['total'] }})@endforeach
Distribution
@php $maxS=$statusDistribution->max('total')?:1; @endphp @foreach($statusDistribution as $s)
{{ $s['name'] }}
{{ $s['total'] }}
@endforeach
@endsection @section('scripts') @endsection