Plan comptable

@if(auth()->user()->hasPermission('accounting-manage')) @endif
{{-- BARRE DE RECHERCHE --}}
{{-- Spinner de chargement --}}
{{-- Bouton Réinitialiser (icône seule) --}}
{{-- TABLEAU --}}
@forelse($accounts as $account) @empty @endforelse
Actions
@if(auth()->user()->hasPermission('accounting-view')) {{ $account->id }} @else {{ $account->id }} @endif
{{ $account->name }}
{{ $account->class }} @if($account->type === 'revenue') Produit @elseif($account->type === 'expense') Charge @elseif($account->type === 'asset') Actif @else {{ ucfirst($account->type) }} @endif @if($account->is_active) Actif @else Inactif @endif
@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
Aucun compte trouvé.
{{-- PAGINATION --}} @if($accounts->hasPages())
{{ $accounts->links() }}
@endif