@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]) @if($a->closing_balance == 0) {{ '-' }} @elseif($a->closing_balance < 0) ({{number_format(abs($a->closing_balance)) }}) @else {{number_format($a->closing_balance) }} @endif @endif @permission('view-chart-of-account') @if($leafAccount[$a->id]) @endif @endpermission @permission('edit-chart-of-account') @endpermission @permission('delete-chart-of-account') @endpermission