@foreach($this->accountCategories as $categoryValue => $accountSubtypes) {{ $this->getCategoryLabel($categoryValue) }} @endforeach @foreach($this->accountCategories as $categoryValue => $accountSubtypes) @if($activeTab === $categoryValue)
@foreach($accountSubtypes as $accountSubtype) @forelse($accountSubtype->accounts as $account) @empty @endforelse @endforeach
{{ $accountSubtype->name }}
{{ $account->code }} {{ $account->name }}
@if($account->last_transaction_date) Last transaction on {{ \Illuminate\Support\Carbon::parse($account->last_transaction_date)->toDefaultDateFormat() }} @else No transactions for this account @endif
{{ $account->description }} @if($account->archived) Archived @endif
@if($account->default === false && !$account->adjustment) {{ ($this->editAccountAction)(['account' => $account->id]) }} @endif
{{ __("You haven't added any {$accountSubtype->name} accounts yet.") }}
{{ ($this->createAccountAction)(['accountSubtype' => $accountSubtype->id]) }}
@endif @endforeach