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

{{ $account->id }} - {{ $account->name }}

{{-- Right: Action buttons --}}
@if(auth()->user()->hasPermission('accounting-manage')) @if($account->canBeDeleted()) Supprimer ce compte ? Le compte {{ $account->id }} - {{ $account->name }} sera supprimé définitivement. Cette action est irréversible.
@csrf @method('DELETE')
@else @endif @endif
{{-- Informations du compte --}}

Informations du compte

Numéro

{{ $account->number }}

Nom

{{ $account->name }}

Type

@if($account->type === 'revenue') Produit @elseif($account->type === 'expense') Charge @elseif($account->type === 'asset') Actif @else {{ ucfirst($account->type) }} @endif

Classe comptable

{{ $account->class }}

Statut

@if($account->is_active) Actif @else Inactif @endif

{{-- Statistiques --}}

Statistiques

Lignes d'écriture

{{ $stats['lines_count'] }}

Total débit

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

Total crédit

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

{{-- Solde --}} @php $balance = $stats['total_debit'] - $stats['total_credit']; @endphp
Solde du compte

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