@error('journal') {{ $message }} @enderror
@if($is_Amort) @error('amort_sur') {{ $message }} @enderror @else @error('date_start') {{ $message }} @enderror @endif
@if($is_Amort) @error('amort_date') {{ $message }} @enderror @else @error('date_end') {{ $message }} @enderror @endif
@error('devise') {{ $message }} @enderror
@if($is_Amort) @error('affiche_amort') {{ $message }} @enderror @else @error('compte') {{ $message }} @enderror @endif

@if($data) @if($journal == "GL") @php $debit_somme = 0 ; $credit_somme = 0 ; if($infoCompte->type_compte === 'credit') { if($soldeInitial < 0){ $soldeDebit = $soldeInitial ; $soldeCredit = null ; }else{ $soldeDebit = null ; $soldeCredit = $soldeInitial ; } }else{ if($soldeInitial < 0){ $soldeDebit = null ; $soldeCredit = $soldeInitial ; }else{ $soldeDebit = $soldeInitial ; $soldeCredit = null ; } } if($soldeDebit){ $debit_somme += $soldeDebit ; } if($soldeCredit){ $credit_somme += $soldeCredit ; } @endphp
GRAND LIVRE
Compte : {{ $compte }} {{ $infoCompte->nom_compte }}
Période : {{ get_format_date($date_start,'L') }} au {{ get_format_date($date_end,'L') }} Devise : {{ $devise }} - {{ get_libelle_devise($devise) }}
@foreach($data AS $info) @php $debit_somme += $info->debit ; $credit_somme += $info->credit ; @endphp @endforeach @php if($infoCompte->type_compte === 'credit') { /*** solde = totCredit - TotDebit */ $solde = $credit_somme - $debit_somme ; }else{ /** solde = totDébit - TotCredit */ $solde = $debit_somme - $credit_somme ; } @endphp
Date Libellé Débit Crédit
Solde initial : {{ get_format_montant($soldeDebit) }} {{ get_format_montant($soldeCredit) }}
{{ get_format_date($info->date_valeur) }} {{ $info->intitule }} {{ get_format_montant($info->debit) }} {{ get_format_montant($info->credit) }}
Totaux :
Solde :
{{ get_format_montant($debit_somme) }}
@if($debit_somme < $credit_somme) {{ get_format_montant(abs($solde)) }} @endif
{{ get_format_montant($credit_somme) }}
@if($credit_somme < $debit_somme) {{ get_format_montant(abs($solde)) }} @endif
@endif @if($journal == "balance") @php // substr('abcde', 0,1); // $type = substr( $info->compte, 0,1); $somme_init_debit = 0 ; $somme_init_credit= 0 ; $somme_variation_debit = 0 ; $somme_variation_credit= 0 ; $somme_solde_debit = 0 ; $somme_solde_credit= 0 ; @endphp
BALANCE DES COMPTES
Période : {{ get_format_date($date_start,'L') }} au {{ get_format_date($date_end,'L') }} Devise : {{ $devise }} - {{ get_libelle_devise($devise) }}
@foreach($dico AS $info) @php $bgColor = ""; $textColor = ""; if($info['compte'] <> '') { $somme_init_debit += $info['soldeInitial']['debit_true'] ; $somme_init_credit += $info['soldeInitial']['credit_true'] ; $somme_variation_debit += $info['variations']['debit_true'] ; $somme_variation_credit += $info['variations']['credit_true'] ; $somme_solde_debit += $info['solde']['debit_true'] ; $somme_solde_credit += $info['solde']['credit_true'] ; }else{ $bgColor = "#e3eae9"; $textColor = ""; } @endphp @endforeach
COMPTE INTITULE DE COMPTE SOLDE INITIAL VARIATIONS SOLDE
débit crédit débit crédit débit crédit
{{ $info['compte'] }} {{ $info['intitule'] }} {{ get_format_montant($info['soldeInitial']['debit']) }} {{ get_format_montant($info['soldeInitial']['credit']) }} {{ get_format_montant($info['variations']['debit']) }} {{ get_format_montant($info['variations']['credit']) }} {{ get_format_montant($info['solde']['debit']) }} {{ get_format_montant($info['solde']['credit']) }}
TOTAL GENERAL {{ get_format_montant($somme_init_debit) }} {{ get_format_montant($somme_init_credit) }} {{ get_format_montant($somme_variation_debit) }} {{ get_format_montant($somme_variation_credit) }} {{ get_format_montant($somme_solde_debit) }} {{ get_format_montant($somme_solde_credit) }}
@endif @if($journal == "resultat")
COMPTE DE RESULTAT
Période : Devise : {{ $devise }} - {{ get_libelle_devise($devise) }}
@foreach($dico AS $info) @endforeach
REF. LIBELLES NOTE EXERCICE {{ getExercice() }} EXERCICE {{ getExercice_n_1() }}
Net Net
{{ get_text_MAJ($info['poste']) }} {{ $info['intitule'] }} {{ $info['operation'] }} {{ $info['note'] }} {{ get_format_montant($info['exercice_n']) }} {{ get_format_montant($info['exercice_n1']) }}
@endif @if($journal == "bilan")
BILAN
Période : Devise : {{ $devise }} - {{ get_libelle_devise($devise) }}
@foreach($dico['actif'] AS $info) @endforeach
REF. ACTIF NOTE EXERCICE {{ getExercice() }} EX. {{ getExercice_n_1() }}
Brut Amort. Net Net
{{ get_text_MAJ($info['poste']) }} {{ $info['intitule'] }} {{ $info['note'] }} {{ get_format_montant($info['exercice_n']['brut']) }} {{ get_format_montant($info['exercice_n']['amort']) }} {{ get_format_montant($info['exercice_n']['net']) }} {{ get_format_montant($info['exercice_n1']) }}


@foreach($dico['passif'] AS $info) @endforeach
REF. PASSIF NOTE EXERCICE {{ getExercice() }} EX. {{ getExercice_n_1() }}
Net Net
{{ get_text_MAJ($info['poste']) }} {{ $info['intitule'] }} {{ $info['note'] }} {{ get_format_montant($info['exercice_n']) }} {{ get_format_montant($info['exercice_n1']) }}
@endif @if($journal == "amortissement") @php //$dico_immo = array(); $grand_t_montant = 0; $grand_t_ant = 0; $grand_t_amort = 0; $grand_t_val_res = 0; $libTitle = ($affiche_amort == "detail")? 'détaillé' : 'général'; $libColonne = ($affiche_amort == "detail")? 'date' : 'compte'; @endphp
Tableau {{ $libTitle }} des amortissements
Amortissement limites sur {{ $amort_sur }} mois à la date du {{ get_format_date($amort_date,'L') }} Devise : {{ $devise }} - {{ get_libelle_devise($devise) }}
@if($affiche_amort == "detail") @endif @foreach($dico_immo AS $info) @if($affiche_amort == "detail") @foreach($info['detail'] AS $immo) @endforeach @else @endif @php $grand_t_montant += $info['t_montant']; $grand_t_ant += $info['t_ant']; $grand_t_amort += $info['t_amort']; $grand_t_val_res += $info['t_val_res']; @endphp @endforeach @if($affiche_amort == "detail") @endif
{{ $libColonne }} libellé montantDant amort val.rés
{{ $info['num_compte'] }} {{ $info['nom_compte'] }} {{ get_format_montant($info['t_montant']) }} {{ get_format_montant($info['t_ant']) }} {{ get_format_montant($info['t_amort']) }} {{ get_format_montant($info['t_val_res']) }}
{{ get_format_date($immo['date_acq']) }} {{ $immo['libelle'] }} {{ get_format_montant($immo['montant'] ) }} {{ $immo['periode'] }} {{ get_format_montant($immo['ant']) }} {{ get_format_montant($immo['amort']) }} {{ get_format_montant($immo['val_res']) }}
{{ $info['num_compte'] }} {{ $info['nom_compte'] }} {{ get_format_montant($info['t_montant']) }} {{ get_format_montant($info['t_ant']) }} {{ get_format_montant($info['t_amort']) }} {{ get_format_montant($info['t_val_res']) }}
TOTAL GENERAL {{ get_format_montant($grand_t_montant) }}{{ get_format_montant( $grand_t_ant) }} {{ get_format_montant($grand_t_amort) }} {{ get_format_montant($grand_t_val_res) }}
@endif @if($journal == "test") @endif @endif