<?php $__currentLoopData = $subacounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <ul class="nested">
            <li>
                <i class="fas fa-folder-open folder-icone rotate"></i>
              <a href="<?php echo e(route("settings.account.destroy",$account->id)); ?>" onclick="return confirm('Are you sure?')" class="btn btn-sm "> <i style="color: red" class="fas fa-trash folder-icone rotate"></i></a>
                <a class="text-dark" href="<?php echo e(route('settings.account.edit', $account->id)); ?>">
                    <span><?php echo e($account->head_code ? $account->head_code . ' -' : ''); ?>

                        <?php echo e($account->account_name); ?> <?php echo e($account->account_code); ?>  <?php echo e($account->bank_name); ?>

                    </span>
                </a>
                <?php if($account->subAccount->isNotEmpty()): ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.account-sub','data' => ['subacounts' => $account->subAccount]]); ?>
<?php $component->withName('account-sub'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['subacounts' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($account->subAccount)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <?php endif; ?>
            </li>
    </ul>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/jubairba/soft.jubairbangladesh.com/resources/views/components/account-sub.blade.php ENDPATH**/ ?>