@extends('layouts.app') @section('title') Chart of Accounts @stop @section('css') @stop @section('breadcrumb') @stop @section('content')
Customize Report

@permission('create-chart-of-account')   Add new Account @endpermission

Chart of Accounts

@foreach($accounts as $a) @if($leafAccount[$a->id]) @if($a->sub_account_id) @else @endif @else @if($a->sub_account_id) @else @endif @endif @endforeach
Sr. No Code Name Type Balance Action
{{$count++}}     {{$a->number}}      {{$a->name}}{{$a->number}} {{$a->name}}     {{$a->number}}      {{$a->name}}{{$a->number}} {{$a->name}}{{$a->type? $a->type->name: ''}} @if($leafAccount[$a->id]) {{\App\GeneralJournalEntry::getAccountBalance($a->id) }} @endif @permission('view-chart-of-account') @if($leafAccount[$a->id]) @endif @endpermission @permission('edit-chart-of-account') @endpermission @permission('delete-chart-of-account') @endpermission
{{$accounts->links()}}
@stop @section('js') @section('js') @stop