@extends('layouts.app') @section('title', 'Chart of accounts') @section('content') @can('ledger.manage') New account @endcan @can('ledger.manage') Journal entry @endcan
@foreach ($types as $type => $label) @php($rows = $groups[$type] ?? collect()) @continue($rows->isEmpty())
{{ $label }}{{ $rows->count() }} {{ \Illuminate\Support\Str::plural('account', $rows->count()) }}
@foreach ($rows as $a) @endforeach
CodeAccountDebitsCreditsBalanceEntriesActions
{{ $a->code }} {{ $a->name }} @if ($a->is_system)System@endif @unless ($a->is_active)Inactive@endunless @if ($a->description){{ $a->description }}@endif {{ money($a->debits) }} {{ money($a->credits) }} {{ money($a->balanceFromTotals()) }} {{ $a->lines_count }}
  • Open ledger
  • @can('ledger.manage')
  • Edit
  • @endcan @unless ($a->is_system || $a->lines_count) @can('ledger.manage')
  • @endcan @endunless
    @endforeach

    Expense accounts are created automatically, one per expense category. Receivable and payable are posted by orders, bills, payments and opening balances — you can't post to them by hand.

    @endsection