@foreach($this->categories as $categoryValue => $subtypes) {{ $this->getCategoryLabel($categoryValue) }} @endforeach @foreach($this->categories as $categoryValue => $subtypes) @if($activeTab === $categoryValue)
@foreach($subtypes as $subtype) @forelse($subtype->accounts as $account) @empty @endforelse @endforeach
{{ $subtype->name }}
{{ $account->code }} {{ $account->name }}
@if($account->getLastTransactionDate()) Last transaction on {{ $account->getLastTransactionDate() }} @else No transactions for this account @endif
{{ $account->description }} @if($account->archived) Archived @endif
@if($account->default === false) {{ ($this->editChartAction)(['chart' => $account->id]) }} @endif
{{ __("You haven't added any {$subtype->name} accounts yet.") }}
{{ ($this->createChartAction)(['subtype' => $subtype->id]) }}
@endif @endforeach