| Numéro du marché: | {{ $marche->numero_marche }} | Opérateur: | {{ $marche->operateur->nom ?? 'N/A' }} |
| Objet du marché: | {{ $marche->objet }} | ||
| Description: | {{ $marche->description ?? 'Aucune description' }} | ||
| Date de début: | {{ $marche->date_debut->format('d/m/Y') }} | Date de fin: | {{ $marche->date_fin->format('d/m/Y') }} |
| Durée restante: | @php $joursRestants = now()->diffInDays($marche->date_fin, false); @endphp @if($joursRestants > 0) {{ $joursRestants }} jours @else Expiré @endif | Statut: | {{ strtoupper($marche->statut) }} |
| Montant global: | {{ number_format($marche->montant_global, 2, ',', ' ') }} FCFA | Montant facturé: | {{ number_format($marche->montant_global - $marche->montant_restant, 2, ',', ' ') }} FCFA |
| Montant restant: | {{ number_format($marche->montant_restant, 2, ',', ' ') }} FCFA | Taux d'exécution: | {{ round($marche->progression, 2) }}% |
| Exercice | Montant Alloué | Montant Utilisé | Solde | Taux d'Utilisation | État |
|---|---|---|---|---|---|
| {{ $exercice->annee }} | {{ number_format($exercice->pivot->montant, 2, ',', ' ') }} FCFA | {{ number_format($montantUtilise, 2, ',', ' ') }} FCFA | {{ number_format($solde, 2, ',', ' ') }} FCFA | {{ round($tauxUtilisation, 2) }}% | @if($solde < 0) ⚠️ Dépassement @elseif($tauxUtilisation > 80) ⚠️ Attention @else ✅ Normal @endif |
| TOTAL | {{ number_format($marche->exercices->sum('pivot.montant'), 2, ',', ' ') }} FCFA | {{ number_format($marche->factures->sum('montant'), 2, ',', ' ') }} FCFA | {{ number_format($marche->montant_restant, 2, ',', ' ') }} FCFA | {{ round($marche->progression, 2) }}% | @if($marche->montant_restant < 0) ❌ DÉPASSEMENT GLOBAL @elseif($marche->progression > 80) ⚠️ RISQUE DE DÉPASSEMENT @else ✅ BUDGET MAÎTRISÉ @endif |
| N° Facture | Exercice | Date | Montant | Statut | Date Validation | Date Paiement |
|---|---|---|---|---|---|---|
| {{ $facture->numero_facture }} | {{ $facture->exercice->annee }} | {{ $facture->date_facture->format('d/m/Y') }} | {{ number_format($facture->montant, 2, ',', ' ') }} FCFA | {{ strtoupper($facture->statut) }} | {{ $facture->date_validation ? $facture->date_validation->format('d/m/Y') : 'N/A' }} | {{ $facture->date_paiement ? $facture->date_paiement->format('d/m/Y') : 'N/A' }} |
| SOUS-TOTAL PAR STATUT | {{ number_format($marche->factures->sum('montant'), 2, ',', ' ') }} FCFA | |||||
| {{ strtoupper($statut) }}: {{ $factures->count() }} facture(s) | {{ number_format($factures->sum('montant'), 2, ',', ' ') }} FCFA | |||||
Aucune facture n'a été enregistrée pour ce marché.
| Nombre total d'exercices: | {{ $marche->exercices->count() }} |
| Nombre total de factures: | {{ $marche->factures->count() }} |
| Montant total engagé: | {{ number_format($marche->montant_global - $marche->montant_restant, 2, ',', ' ') }} FCFA |
| Solde disponible: | {{ number_format($marche->montant_restant, 2, ',', ' ') }} FCFA |
| Taux d'exécution global: | {{ round($marche->progression, 2) }}% |