Journals New account
@if (request()->hasAny(['q', 'type'])) Clear @endif
@if ($accounts->isEmpty()) @else
@foreach ($accounts as $account) @endforeach
Code Account Type Parent Ledger movement Balance Status Actions
{{ $account->code }}
{{ $account->name }} @if ($account->is_system) System @endif
@if ($account->description)
{{ $account->description }}
@endif
{{ $account->parent ? $account->parent->code.' · '.$account->parent->name : '—' }} Dr {{ money($account->ledger_debits, false) }} / Cr {{ money($account->ledger_credits, false) }} {{ money(abs($account->ledger_balance), false) }} {{ in_array($account->account_type, ['asset', 'expense'], true) ? ($account->ledger_balance < 0 ? 'Cr' : 'Dr') : ($account->ledger_balance < 0 ? 'Dr' : 'Cr') }} @if ($account->is_active) @else @endif
@unless ($account->is_system)
@csrf @method('PATCH')
@csrf @method('DELETE')
@endunless
@if ($accounts->hasPages())
{{ $accounts->links() }}
@endif @endif