{{-- Left: Back button --}} {{-- Center: Title --}}

Exercice fiscal {{ $fiscalYear->id }}

{{-- Right: Action buttons --}}
@if(auth()->user()->hasPermission('accounting-close-fiscal') && $fiscalYear->isOpen()) Clôturer l'exercice fiscal {{ $fiscalYear->id }} ? Attention ! Une fois clôturé, l'exercice ne pourra plus être modifié. Assurez-vous que toutes les écritures comptables sont correctes et équilibrées.
@csrf
@endif @if(auth()->user()->hasPermission('accounting-manage')) @if($fiscalYear->canBeEdited()) @else @endif @endif
{{-- Informations générales --}}

Informations générales

Année

{{ $fiscalYear->id }}

Statut

@if($fiscalYear->status === 'open') Ouvert @else Clôturé le {{ $fiscalYear->closed_at?->format('d/m/Y') }} @endif

Date de début

{{ $fiscalYear->start_date->format('d/m/Y') }}

Date de fin

{{ $fiscalYear->end_date->format('d/m/Y') }}

{{-- Résultat --}} @php $result = $stats['total_income'] - $stats['total_expense']; @endphp
Résultat de l'exercice

{{ $result >= 0 ? '+' : '' }}{{ number_format($result, 2, ',', ' ') }} €

{{-- Statistiques --}}

Statistiques

Écritures

{{ $stats['transactions_count'] }}

Produits

{{ number_format($stats['total_income'], 2, ',', ' ') }} €

Charges

{{ number_format($stats['total_expense'], 2, ',', ' ') }} €

Remboursements

{{ number_format($stats['total_refund'], 2, ',', ' ') }} €

{{-- Transactions récentes --}} @if($recentTransactions->count() > 0)

Écritures récentes (10 dernières)

@foreach($recentTransactions as $transaction) @endforeach
Référence Date Description Type Montant
{{ $transaction->reference }} {{ $transaction->transaction_date->format('d/m/Y') }} {{ Str::limit($transaction->description, 50) }} {{ ucfirst($transaction->type) }} {{ number_format($transaction->amount, 2, ',', ' ') }} €
@if($fiscalYear->transactions->count() > 10) @endif
@endif