@extends('layouts.master') @section('title', 'Détails de l\'Exercice') @section('content')

Exercice: {{ $exercice->annee }}

Informations générales

Année: {{ $exercice->annee }}
Début: {{ $exercice->date_debut->format('d/m/Y') }}
Fin: {{ $exercice->date_fin->format('d/m/Y') }}
Statut: @if($exercice->est_actif) Actif @else Inactif @endif

Informations financières

Montant alloué: {{ number_format($exercice->montant_alloue, 2, ',', ' ') }} FCFA
Montant utilisé: {{ number_format($exercice->montant_utilise, 2, ',', ' ') }} FCFA
Montant restant: {{ number_format($exercice->montant_restant, 2, ',', ' ') }} FCFA
Progression:
{{ round($exercice->progression, 2) }}%

Marchés associés

@if($exercice->marches->count() > 0)
@foreach($exercice->marches as $marche) @endforeach
Reference Titulaire Intitulé Montant Alloué Montant Utilisé Montant Restant
{{ $marche->reference }} {{ $marche->operateur->denomination }} {{ Str::limit($marche->intitule, 50) }} {{ number_format($marche->pivot->montant, 2, ',', ' ') }} FCFA {{ number_format($exercice->factures()->where('marche_id', $marche->id)->sum('montant'), 2, ',', ' ') }} FCFA {{ number_format($marche->pivot->montant - $exercice->factures()->where('marche_id', $marche->id)->sum('montant'), 2, ',', ' ') }} FCFA
@else
Cet exercice n'a aucun marché associé.
@endif
@endsection