<?php
    $num = isset($countNum) ? $countNum + 1 : 0;
    $skip = $skip ?? [];
?>

<?php $__currentLoopData = $setAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php if(in_array($account->id, $skip)): ?>
    <?php else: ?>
        <?php if($account->subAccount->isNotEmpty()): ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.card-account','data' => ['setAccounts' => $account->subAccount,'skip' => $skip,'countNum' => $num]]); ?>
<?php $component->withName('card-account'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['setAccounts' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($account->subAccount),'skip' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($skip),'countNum' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($num)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
        <?php else: ?>
            <div class="col-md-4">
                <div class="card text-white bg-info mb-3">
                    <div class="card-body">
                        <a
                            href="<?php echo e(route('report.cashbook.cashbook', [
                                'account_id' => $account->id,
                                'start_date' => date("Y-m-d"),
                                'end_date' =>  date("Y-m-d"),
                            ])); ?>">
                            <h5 class="" style="color:black"><?php echo e($account->account_name); ?> <?php echo e($account->account_code); ?>

                                <?php echo e($account->bank_name); ?></h5>

                        <p class="card-text" style="color:rgb(252, 252, 252)"><?php echo e(getUnderAccount($account->unique_identifier, today())); ?></p>
                    </a>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH E:\jubayer\resources\views/components/card-account.blade.php ENDPATH**/ ?>