@extends('dashboard.layouts.app') @section('title', 'Tableau de Bord - UAC eservices') @section('page-title', 'Tableau de Bord') @section('breadcrumb') @endsection @section('content')

{{ Auth::user()->name }}

{{ Auth::user()->role->nom }}
Bienvenue dans UAC eservices

Tableau de Bord Administratif - Vue d'ensemble

Surveillez les performances et l'activité de votre administration

{{--
Dernière mise à jour {{ now()->format('H:i:s') }}
--}}
{{ $courrierMetrics['en_retard'] ?? 0 }}
Courriers en retard
@if(($courrierMetrics['en_retard'] ?? 0) > 0) Urgent @else OK @endif
{{ $contratMetrics['expirant_bientot'] ?? 0 }}
Contrats à renouveler
@if(($contratMetrics['expirant_bientot'] ?? 0) > 0) Attention @else OK @endif

{{ $courrierMetrics['total'] ?? 0 }}

Total Courriers

{{ $courrierMetrics['traites'] ?? 0 }} traités {{ $courrierMetrics['en_retard'] ?? 0 }} en retard
@php $courrierProgress = ($courrierMetrics['total'] ?? 0) > 0 ? (($courrierMetrics['traites'] ?? 0) / ($courrierMetrics['total'] ?? 0)) * 100 : 0; @endphp

{{ $ptaMetrics['total'] ?? 0 }}

Activités PTA

{{ $ptaMetrics['terminees'] ?? 0 }} terminées {{ $ptaMetrics['en_retard'] ?? 0 }} en retard
@php $ptaProgress = ($ptaMetrics['total'] ?? 0) > 0 ? (($ptaMetrics['terminees'] ?? 0) / ($ptaMetrics['total'] ?? 0)) * 100 : 0; @endphp

{{ $tacheMetrics['total'] ?? 0 }}

Tâches

{{ $tacheMetrics['terminees'] ?? 0 }} terminées {{ $tacheMetrics['en_retard'] ?? 0 }} en retard
@php $tacheProgress = ($tacheMetrics['total'] ?? 0) > 0 ? (($tacheMetrics['terminees'] ?? 0) / ($tacheMetrics['total'] ?? 0)) * 100 : 0; @endphp

{{ $marchePublicMetrics['total'] ?? 0 }}

Marchés Publics

{{ $marchePublicMetrics['niveau_execution_moyen'] ?? 0 }}% exécution {{ $marchePublicMetrics['marches_en_retard'] ?? 0 }} en retard
Répartition des Activités PTA
Mise à jour: {{ now()->format('H:i') }}
Niveaux d'Exécution des Marchés
Mise à jour: {{ now()->format('H:i') }}

Courriers en Retard

@if(($courrierMetrics['en_retard'] ?? 0) > 0) {{ $courrierMetrics['en_retard'] }} éléments @else Aucun retard @endif
@if(($courrierMetrics['en_retard'] ?? 0) > 0)
{{ $courrierMetrics['en_retard'] }} courriers nécessitent une attention immédiate
@else
Tous les courriers sont dans les délais
@endif

Contrats à Renouveler

@if(($contratMetrics['expirant_bientot'] ?? 0) > 0) {{ $contratMetrics['expirant_bientot'] }} contrats @else Aucun renouvellement @endif
@if(($contratMetrics['expirant_bientot'] ?? 0) > 0)
{{ $contratMetrics['expirant_bientot'] }} contrats expirent dans les 30 prochains jours
@else
Aucun contrat à renouveler prochainement
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush