@include('template.Head')
@include('template.SideBar')
@include('template.Header')
@include('template.Message')
@csrf

Compte du gérant :

@foreach ($listeCompte as $rows) @endforeach @php $totalCompteGerant = 0; foreach ($listeCompte as $rows) { $montant = (float)$rows->montant_total; if (in_array(strtoupper($rows->libelle), ['DIVIDENDE GERANT', 'REMBOURSEMENT MR ROVA', 'REMBOURSEMENT MR RADO','REMBOURSEMENT MR IANJA'])) { $totalCompteGerant -= $montant; } else { $totalCompteGerant += $montant; } } @endphp
Affectation Montant Total
{{ $rows->libelle }} {{ in_array(strtoupper($rows->libelle), ['DIVIDENDE GERANT', 'REMBOURSEMENT MR ROVA', 'REMBOURSEMENT MR RADO', 'REMBOURSEMENT MR IANJA']) ? '-' : '' }} {{ number_format($rows->montant_total, 2, ',', ' ') }}
Total {{ number_format($totalCompteGerant, 2, ',', ' ') }}

Frais d'atelier :

@foreach ($listeFraisDAtelier as $rows) @endforeach
Affectation Montant total
{{ $rows->libelle }} {{ number_format($rows->montant_total, 2, ',', ' ') }}
Total {{ number_format(\App\Models\caisse::getMontantTotal($listeFraisDAtelier), 2, ',', ' ') }}

Frais de siège :

@foreach ($listeFraisDeSiege as $rows) @endforeach @php $totalFraisSiege = 0; foreach ($listeFraisDeSiege as $rows) { $montantFraisSiege = (float)$rows->montant_total; if (in_array(strtoupper($rows->libelle), ['PROVISION-OUT'])) { $totalFraisSiege -= $montantFraisSiege; } else { $totalFraisSiege += $montantFraisSiege; } } @endphp
Affectation Montant total
{{ $rows->libelle }} {{ in_array(strtoupper($rows->libelle), ['PROVISION-OUT']) ? '-' : '' }} {{ number_format($rows->montant_total, 2, ',', ' ') }}
Total {{ number_format($totalFraisSiege, 2, ',', ' ') }}

Recettes :

@foreach ($listeRecettes as $rows) @endforeach
Affectation Montant total
{{ $rows->libelle }} {{ number_format($rows->montant_total, 2, ',', ' ') }}
Total {{ number_format(\App\Models\caisse::getMontantTotal($listeRecettes), 2, ',', ' ') }}
@include('template.Footer')