Association Sénégalaise de la Valls Icamp
Journal des Opérations Financières - {{ date('d/m/Y') }}
@php $totalCredit = 0; $totalDebit = 0; @endphp @foreach($transactions as $transaction) @php if($transaction->type === 'credit') $totalCredit += $transaction->amount; else $totalDebit += $transaction->amount; @endphp @endforeach {{-- Padding for empty rows --}} @if($transactions->count() < 15) @for($i = 0; $i < (15 - $transactions->count()); $i++) @endfor @endif
Date Type Compte Description / Référence Montant
{{ $transaction->date->format('d/m/Y') }} {{ $transaction->type === 'credit' ? 'Crédit' : 'Débit' }} {{ $transaction->account->name }} {{ $transaction->description }} @if($transaction->reference)
Réf: {{ $transaction->reference }} @endif
{{ $transaction->type === 'credit' ? '+' : '-' }} {{ \App\Models\Setting::format($transaction->amount) }}
 
Total Crédits (+) {{ \App\Models\Setting::format($totalCredit) }}
Total Débits (-) {{ \App\Models\Setting::format($totalDebit) }}
Solde Période {{ \App\Models\Setting::format($totalCredit - $totalDebit) }}