@php
$children_count = $cost_center->children()->count();
$icon = ($children_count >= 1)? 'folder' : 'paper';
@endphp
{{ $cost_center->ar_name }}
@if ($children_count > 0)
@foreach ($cost_center->children as $child_cost_center)
@include('tenant.accounting.cost-centers.item-tree-template', ['cost_center' => $child_cost_center])
@endforeach
@endif