@extends('layouts.master') @section('title', 'Lignes budgétaires') @section('content')
| N° | {{--Exercice | --}}Code Budget | Nom du Budget | {{--Direction | --}} {{--Centre de responsabilité | --}} {{--Poste de gestion | --}}Activité | Compte SYSCOHADA | {{--Nature de la dépense | --}}Montant budgetaire | {{--Montant engagé | --}}Solde disponible | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- ===================================================== CODE BUDGET ====================================================== --}}{{ optional($ligne->besoinbudgetaire)->code_budget ?? '-' }} | {{-- ===================================================== NOM BUDGET ====================================================== --}}{{ optional($ligne->besoinbudgetaire)->nom_budget ?? '-' }} | {{-- ===================================================== ACTIVITÉ ====================================================== --}}{{ $ligne->activite ?? '-' }} | {{-- ===================================================== COMPTE SYSCOHADA ====================================================== --}}{{ optional($ligne->comptesyscohada)->code ?? '-' }} - {{ optional($ligne->comptesyscohada)->libelle ?? '' }} | {{-- ===================================================== MONTANT BUDGÉTAIRE ====================================================== --}}{{ number_format( $montantBudgetaire, 0, ',', ' ' ) }} FCFA | {{-- ===================================================== SOLDE DISPONIBLE ====================================================== --}}@if($solde > 0) {{ number_format( $solde, 0, ',', ' ' ) }} FCFA @else Épuisée @endif | {{-- ===================================================== ACTION ====================================================== --}}
{{-- =================================================
CAS 1 : LIGNE ÉPUISÉE
================================================== --}}
@if($ligneEpuisee)
Budget épuisé
{{-- =================================================
CAS 2 : BROUILLON EXISTANT
================================================== --}}
@elseif($brouillon)
Brouillon
Continuer {{-- ================================================= CAS 3 : SOLDE DISPONIBLE ================================================== --}} @else {{-- --------------------------------------------- BOUTON NOUVEL ENGAGEMENT ---------------------------------------------- --}} Nouvel engagement {{-- --------------------------------------------- SI UN ANCIEN ENGAGEMENT EXISTE ---------------------------------------------- --}} @if($dernierEngagement) {{ number_format( $montantEngage, 0, ',', ' ' ) }} FCFA déjà engagé @endif @endif |
||||||
Aucune ligne budgétaire disponible |
|||||||||||||