 <section class="detail-area bg-white shadow-sm p-3 mb-5  rounded">

    <div class="row " style="row-gap: 10px;">

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dashboard-counter')): ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('clients.index')).'','icon' => 'users','title' => 'Total Clients','value' => ''.e($allClient).'','bgcolor' => 'total-col','iconColor' => 'colorSky']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('clients.index')).'','icon' => 'users','title' => 'Total Clients','value' => ''.e($allClient).'','bgcolor' => 'total-col','iconColor' => 'colorSky']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('activeCustomer')).'','icon' => 'user-shield','title' => 'Active Clients','value' => ''.e($clientCount->where('clients_status', 'active')->first()->total ?? 0).'','bgcolor' => 'bgBlue','iconColor' => 'colorBlue']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('activeCustomer')).'','icon' => 'user-shield','title' => 'Active Clients','value' => ''.e($clientCount->where('clients_status', 'active')->first()->total ?? 0).'','bgcolor' => 'bgBlue','iconColor' => 'colorBlue']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('deactivatedClients')).'','icon' => 'users-slash','title' => 'Deactive Clients','value' => ''.e($clientCount->where('clients_status', 'deactive')->first()->total ?? 0).'','bgcolor' => 'colorLime','iconColor' => 'colorGreen']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('deactivatedClients')).'','icon' => 'users-slash','title' => 'Deactive Clients','value' => ''.e($clientCount->where('clients_status', 'deactive')->first()->total ?? 0).'','bgcolor' => 'colorLime','iconColor' => 'colorGreen']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('list', ['type' => 'new-join'])).'','icon' => 'user-plus','title' => 'New Clients','value' => ''.e($newClients ?? 0).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('list', ['type' => 'new-join'])).'','icon' => 'user-plus','title' => 'New Clients','value' => ''.e($newClients ?? 0).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('list','disable-customer')).'','icon' => 'users-slash','title' => 'Disabled  Clients','value' => ''.e($clientCount->where('clients_status', 'disable')->first()->total ?? 0).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('list','disable-customer')).'','icon' => 'users-slash','title' => 'Disabled  Clients','value' => ''.e($clientCount->where('clients_status', 'disable')->first()->total ?? 0).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if(checkSettings('free_client') == 'enable'): ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('free-client')): ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('freeClient')).'','icon' => 'user-shield','title' => 'Free Clients','value' => ''.e($freeClient ?? 0).'','bgcolor' => 'bgGreen','iconColor' => 'colorGreen']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('freeClient')).'','icon' => 'user-shield','title' => 'Free Clients','value' => ''.e($freeClient ?? 0).'','bgcolor' => 'bgGreen','iconColor' => 'colorGreen']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <?php endif; ?>
            <?php endif; ?>


            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('leftclient')): ?>
                <?php
                    $deactiveClient = $clientCount->where('clients_status', 'deactive')->first()->total ?? 0;
                    $totalleftClient = $deactiveClient + $deleteClients;
                ?>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('leftClient')).'','icon' => 'user-times','title' => 'Left Clients','value' => ''.e($totalleftClient).'','bgcolor' => 'bgRed','iconColor' => 'colorPurple']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('leftClient')).'','icon' => 'user-times','title' => 'Left Clients','value' => ''.e($totalleftClient).'','bgcolor' => 'bgRed','iconColor' => 'colorPurple']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php endif; ?>

            
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('list', 'expired-Clients')).'','icon' => 'user-times','title' => 'Expire Clients','value' => ''.e($clientCount->where('clients_status', 'expired')->first()->total ?? 0).'','bgcolor' => 'bgPurple','iconColor' => 'colorPurple']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('list', 'expired-Clients')).'','icon' => 'user-times','title' => 'Expire Clients','value' => ''.e($clientCount->where('clients_status', 'expired')->first()->total ?? 0).'','bgcolor' => 'bgPurple','iconColor' => 'colorPurple']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('pendingCustomer')).'','icon' => 'users-cog','title' => 'Pending Clients','value' => ''.e($clientCount->where('client_approval', 'pending')->first()->total ?? 0).'','bgcolor' => 'pending-bill-col','iconColor' => 'colorRed']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('pendingCustomer')).'','icon' => 'users-cog','title' => 'Pending Clients','value' => ''.e($clientCount->where('client_approval', 'pending')->first()->total ?? 0).'','bgcolor' => 'pending-bill-col','iconColor' => 'colorRed']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('show-reseller-cost')): ?>
                <?php if(auth()->user()->hasRole(['Reseller Admin', 'Reseller'])): ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => '#','icon' => 'calendar-check','title' => 'Reseller Cost(Per day)','value' => ''.e(resellerPerDayCost()).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => '#','icon' => 'calendar-check','title' => 'Reseller Cost(Per day)','value' => ''.e(resellerPerDayCost()).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <?php endif; ?>
            <?php endif; ?>
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('dashboard-billing-info')): ?>


            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Bill '.e(today()->format('Y')).'','value' => ''.e(round($thisMonthBillGenerate+$resellerCurrentMonthBill) ?? 0).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Bill '.e(today()->format('Y')).'','value' => ''.e(round($thisMonthBillGenerate+$resellerCurrentMonthBill) ?? 0).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>


            


            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' COL '.e(today()->format('Y')).'','value' => ''.e(round($thisMonthBillPaid) - round($currentMonthDiscount) + round($resellerCurrentMonthCollection) ?? 0).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' COL '.e(today()->format('Y')).'','value' => ''.e(round($thisMonthBillPaid) - round($currentMonthDiscount) + round($resellerCurrentMonthCollection) ?? 0).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>


            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('paymentReport')).'','icon' => 'calendar-check','title' => 'Discount '.e(today()->format('F')).'  '.e(today()->format('Y')).'','value' => ''.e(round($currentMonthDiscount) ?? 0).'','bgcolor' => 'discount-month','iconColor' => 'bgWhite']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('paymentReport')).'','icon' => 'calendar-check','title' => 'Discount '.e(today()->format('F')).'  '.e(today()->format('Y')).'','value' => ''.e(round($currentMonthDiscount) ?? 0).'','bgcolor' => 'discount-month','iconColor' => 'bgWhite']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>


            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Due '.e(today()->format('Y')).'','value' => ''.e(($currentMonthDue + round($resellerCurrentMonthDue)) ?? 0).'','bgcolor' => 'bgGreen','iconColor' => 'colorGreen']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Due '.e(today()->format('Y')).'','value' => ''.e(($currentMonthDue + round($resellerCurrentMonthDue)) ?? 0).'','bgcolor' => 'bgGreen','iconColor' => 'colorGreen']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>



            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('paymentReport')).'','icon' => 'wallet','title' => 'Today Bill COL','value' => ''.e(round($todayBillCollection) ?? 0).'','bgcolor' => 'bg-today-col','iconColor' => 'colorRed']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('paymentReport')).'','icon' => 'wallet','title' => 'Today Bill COL','value' => ''.e(round($todayBillCollection) ?? 0).'','bgcolor' => 'bg-today-col','iconColor' => 'colorRed']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('due-customer')).'','icon' => 'funnel-dollar','title' => 'Total Due','value' => ''.e(round($total_due) ?? 0).'','bgcolor' => 'bgRed','iconColor' => 'colorPurple']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('due-customer')).'','icon' => 'funnel-dollar','title' => 'Total Due','value' => ''.e(round($total_due) ?? 0).'','bgcolor' => 'bgRed','iconColor' => 'colorPurple']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('due-customer')).'','icon' => 'calendar-day','title' => 'Previous Due','value' => ''.e(round($previous_due) ?? 0).'','bgcolor' => 'prev-col','iconColor' => 'colorGreen']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('due-customer')).'','icon' => 'calendar-day','title' => 'Previous Due','value' => ''.e(round($previous_due) ?? 0).'','bgcolor' => 'prev-col','iconColor' => 'colorGreen']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
        <?php endif; ?>

        <?php if(globalPermission('reseller-client-billing')): ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('reseller-billing-info')): ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Bill '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_bill_this_month'])).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Bill '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_bill_this_month'])).'','bgcolor' => 'bgGray','iconColor' => 'colorGray']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' COL '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_bill_paid_this_month'])).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' COL '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_bill_paid_this_month'])).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('paymentReport')).'','icon' => 'calendar-check','title' => 'Discount '.e(today()->format('F')).'  '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_discount_this_month'])).'','bgcolor' => 'discount-month','iconColor' => 'bgWhite']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('paymentReport')).'','icon' => 'calendar-check','title' => 'Discount '.e(today()->format('F')).'  '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_discount_this_month'])).'','bgcolor' => 'discount-month','iconColor' => 'bgWhite']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Due '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_due_amount_this_month'])).'','bgcolor' => 'bgGreen','iconColor' => 'colorGreen']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('bill-generate')).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' Due '.e(today()->format('Y')).'','value' => ''.e(round($otherResellerBillingInfo['total_due_amount_this_month'])).'','bgcolor' => 'bgGreen','iconColor' => 'colorGreen']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('paymentReport')).'','icon' => 'wallet','title' => 'Today Bill COL','value' => ''.e(round($otherResellerBillingInfo['to_day_bill_collection'] ?? 0 )).'','bgcolor' => 'bg-today-col','iconColor' => 'colorRed']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('paymentReport')).'','icon' => 'wallet','title' => 'Today Bill COL','value' => ''.e(round($otherResellerBillingInfo['to_day_bill_collection'] ?? 0 )).'','bgcolor' => 'bg-today-col','iconColor' => 'colorRed']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('due-customer')).'','icon' => 'funnel-dollar','title' => 'Total Due','value' => ''.e(round($otherResellerBillingInfo['total_due_amont'] ?? 0 )).'','bgcolor' => 'bgRed','iconColor' => 'colorPurple']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('due-customer')).'','icon' => 'funnel-dollar','title' => 'Total Due','value' => ''.e(round($otherResellerBillingInfo['total_due_amont'] ?? 0 )).'','bgcolor' => 'bgRed','iconColor' => 'colorPurple']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('due-customer')).'','icon' => 'calendar-day','title' => 'Previous Due','value' => ''.e(round($otherResellerBillingInfo['previous_due']  ?? 0 )).'','bgcolor' => 'prev-col','iconColor' => 'colorGreen']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('due-customer')).'','icon' => 'calendar-day','title' => 'Previous Due','value' => ''.e(round($otherResellerBillingInfo['previous_due']  ?? 0 )).'','bgcolor' => 'prev-col','iconColor' => 'colorGreen']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                <?php endif; ?>
        <?php endif; ?>

    </div>
</section>
<?php /**PATH /var/www/html/kn24/radius-circle/resources/views/dashboard/new/counter.blade.php ENDPATH**/ ?>