@extends('dashboard.layouts.app') @section('title', $activite->titre . ' - PTA - UAC eservices') @section('page-title', 'Feuille de route PTA') @section('breadcrumb') @endsection @section('content')

{{ $activite->titre }}

{{ $activite->description }}

{{ $activite->statut }}
Date de début prévue
{{ $activite->date_debut_prevue->format('d/m/Y') }}
Date de fin prévue
{{ $activite->date_fin_prevue->format('d/m/Y') }}
Créé par
{{ $activite->createur->name }}
Indicateurs de Performance
@php $performanceService = app(\App\Services\PtaPerformanceService::class); $indicateurs = $performanceService->getIndicateursPerformance($activite); @endphp
TEP - Taux d'Exécution Physique

{{ $indicateurs['tep'] }}%

{{ $indicateurs['ponderation_terminee'] }}/{{ $indicateurs['total_ponderation'] }} points
TEF - Taux d'Exécution Financière
@if($indicateurs['tef'] !== null)

{{ $indicateurs['tef'] }}%

{{ number_format($indicateurs['total_depenses'], 0, ',', ' ') }} / {{ number_format($indicateurs['budget_alloue'], 0, ',', ' ') }} XOF
@else

N/A

Budget non défini @endif
@if($indicateurs['tef'] !== null)
Répartition Budgétaire
@endif
@if($indicateurs['tef'] !== null) @endif
Progression des tâches
@php $totalTaches = $activite->taches->count(); $tachesTerminees = $activite->taches->where('statut', 'Terminé')->count(); $pourcentage = $totalTaches > 0 ? ($tachesTerminees / $totalTaches) * 100 : 0; @endphp
Progression globale (simple) {{ number_format($pourcentage, 1) }}%

{{ $totalTaches }}

Total

{{ $activite->taches->where('statut', 'En cours')->count() }}

En cours

{{ $tachesTerminees }}

Terminées
Actions
Retour à la liste @can('update', $activite) Modifier l'activité Gérer les dépenses @endcan
Liste des tâches
@if($activite->taches->count() > 0)
@foreach($activite->taches as $tache)

{{ $tache->description }}

{{ $tache->responsable->name }}
Échéance: {{ $tache->date_limite->format('d/m/Y') }}
{{ $tache->statut }}
@if($tache->responsable_id === auth()->id())
@csrf @method('PATCH')
@else Seul le responsable peut modifier le statut @endif @can('update', $activite) @endcan
@endforeach
@else
Aucune tâche définie
@can('update', $activite)

Cliquez sur "Ajouter une tâche" pour commencer.

@endcan
@endif
@can('update', $activite) @endcan @endsection