@extends('layouts.app') @section('title', 'Chart of Accounts') @section('breadcrumb')
{{ $stats['total'] }} accounts · {{ $stats['active'] }} active · {{ $stats['inactive'] }} inactive
| CODE | NAME | TYPE | BALANCE | ACTION |
|---|---|---|---|---|
| ● {{ $section['label'] }}({{ $accs->count() }}) | ||||
| {{ $acc->code ?: '—' }} |
@if(($acc->display_depth ?? $acc->depth) > 0)@endif
{{ $acc->name }}
@if($acc->is_bank)Bank@endif
@if($acc->is_cash)Cash@endif
@if(!$acc->is_active)Inactive@endif
@if($acc->parent_id && $acc->parent)Sub-account of {{ $acc->parent->name }} @endif
|
{{ $acc->qb_account_type ?? $section['label'] }} | @if($acc->show_current_balance ?? false) @php $balanceText = \App\Helpers\NumberHelper::formatAmount($acc->current_balance_value ?? 0, $companyId) . ($acc->current_balance_suffix ?? ''); @endphp {{ $balanceText }} @else — @endif |
|