{{ __('app.accounts.chart.title') }}

{{ __('app.accounts.chart.desc') }}

@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@foreach (['categories', 'accounts', 'cash', 'bank'] as $item) @endforeach
@if ($tab === 'categories')
@can('chart_of_accounts.create') {{ __('app.accounts.chart.new_category') }} @endcan
@if ($showCategoryForm)
@foreach ($types as $type) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($categories as $category) @empty @endforelse
{{ __('app.accounts.fields.code') }} {{ __('app.accounts.fields.name_en') }} {{ __('app.accounts.fields.type') }} {{ __('app.accounts.chart.tabs.accounts') }} {{ __('app.accounts.fields.status') }} {{ __('app.actions.view') }}
{{ $category->code }} {{ $category->localizedName() }} {{ $category->type->label() }} {{ $category->accounts_count }}
@if ($category->is_active) {{ __('app.accounts.status.active') }} @else {{ __('app.accounts.status.inactive') }} @endif @if ($category->is_system) {{ __('app.accounts.status.system') }} @endif
@can('chart_of_accounts.edit') {{ __('app.actions.edit') }} @endcan

{{ __('app.accounts.chart.system_locked') }}

@endif @if ($tab === 'accounts')
@can('chart_of_accounts.create') {{ __('app.accounts.chart.new_account') }} @endcan
@if ($showAccountForm)
@foreach ($types as $type) @endforeach @foreach ($categoryOptions as $option) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($accounts as $account) @empty @endforelse
{{ __('app.accounts.fields.code') }} {{ __('app.accounts.fields.name_en') }} {{ __('app.accounts.fields.type') }} {{ __('app.accounts.fields.category') }} {{ __('app.accounts.fields.status') }} {{ __('app.actions.view') }}
{{ $account->code }} {{ $account->localizedName() }} @if ($account->description) {{ $account->description }} @endif {{ $account->type->label() }} {{ $account->category?->localizedName() ?? '—' }}
@if ($account->is_active) {{ __('app.accounts.status.active') }} @else {{ __('app.accounts.status.inactive') }} @endif @if ($account->is_system) {{ __('app.accounts.status.system') }} @endif
@can('chart_of_accounts.edit') {{ __('app.actions.edit') }} @endcan
@endif @if ($tab === 'cash')
@can('chart_of_accounts.create') {{ __('app.accounts.chart.new_cash') }} @endcan
@if ($showCashForm)
@foreach ($assetLedgers as $ledger) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($cashAccounts as $cash) @empty @endforelse
{{ __('app.accounts.fields.code') }} {{ __('app.accounts.fields.name_en') }} {{ __('app.accounts.fields.ledger_account') }} {{ __('app.accounts.fields.status') }} {{ __('app.actions.view') }}
{{ $cash->code }} {{ $cash->localizedName() }} {{ __('app.accounts.chart.linked_ledger', ['code' => $cash->ledgerAccount?->code ?? '—', 'name' => $cash->ledgerAccount?->localizedName() ?? '—']) }}
@if ($cash->is_active) {{ __('app.accounts.status.active') }} @else {{ __('app.accounts.status.inactive') }} @endif @if ($cash->is_system) {{ __('app.accounts.status.system') }} @endif
@can('chart_of_accounts.edit') {{ __('app.actions.edit') }} @endcan
@endif @if ($tab === 'bank')
@can('chart_of_accounts.create') {{ __('app.accounts.chart.new_bank') }} @endcan
@if ($showBankForm)
@foreach ($assetLedgers as $ledger) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($bankAccounts as $bank) @empty @endforelse
{{ __('app.accounts.fields.code') }} {{ __('app.accounts.fields.name_en') }} {{ __('app.accounts.fields.ledger_account') }} {{ __('app.accounts.fields.bank_name') }} {{ __('app.accounts.fields.status') }} {{ __('app.actions.view') }}
{{ $bank->code }} {{ $bank->localizedName() }} {{ __('app.accounts.chart.linked_ledger', ['code' => $bank->ledgerAccount?->code ?? '—', 'name' => $bank->ledgerAccount?->localizedName() ?? '—']) }} {{ $bank->bank_name ?: '—' }} @if ($bank->account_number) {{ $bank->account_number }} @endif
@if ($bank->is_active) {{ __('app.accounts.status.active') }} @else {{ __('app.accounts.status.inactive') }} @endif @if ($bank->is_system) {{ __('app.accounts.status.system') }} @endif
@can('chart_of_accounts.edit') {{ __('app.actions.edit') }} @endcan
@endif