@extends('layouts.admin') @section('title','Chart of accounts') @section('content')
Accounts
{{ $stats['total'] }}
Active
{{ $stats['active'] }}
Control accounts
{{ $stats['control'] }}
AccountTypePosting roleStatus @forelse($accounts as $account)
{{ $account->code }}
{{ $account->parent_id ? '↳ ' : '' }}{{ $account->name }}
@if($account->parent)
{{ $account->parent->name }}
@endif {{ $account->type }} @if($account->is_header)Header@endif @if($account->is_control)Control@endif @if(!$account->is_header && !$account->is_control)Posting@endif {{ $account->active ? 'Active' : 'Inactive' }} @emptyNo accounts match the filters.@endforelse {{ $accounts->links() }}
@endsection