 <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 if(checkSettings('remove_left_client_from_dashboard') == 'enable'): ?>
                 <?php else: ?>
                     <?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 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('show-client-count-expire-date')): ?>
             <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => '#','icon' => 'calendar-day','title' => 'Today Expire Clients','value' => ''.e($clientExpireWise[0]).'','bgcolor' => 'bg-today-col','iconColor' => 'text-warning']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => '#','icon' => 'calendar-day','title' => 'Today Expire Clients','value' => ''.e($clientExpireWise[0]).'','bgcolor' => 'bg-today-col','iconColor' => 'text-warning']); ?>
<?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' => '#','icon' => 'calendar-alt','title' => 'Tomorrow Expire Clients','value' => ''.e($clientExpireWise[1]).'','bgcolor' => 'bg-info','iconColor' => 'text-info']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => '#','icon' => 'calendar-alt','title' => 'Tomorrow Expire Clients','value' => ''.e($clientExpireWise[1]).'','bgcolor' => 'bg-info','iconColor' => 'text-info']); ?>
<?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' => '#','icon' => 'calendar-plus','title' => 'Day After Tomorrow Expire Clients','value' => ''.e($clientExpireWise[2]).'','bgcolor' => 'bg-success','iconColor' => 'text-success']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => '#','icon' => 'calendar-plus','title' => 'Day After Tomorrow Expire Clients','value' => ''.e($clientExpireWise[2]).'','bgcolor' => 'bg-success','iconColor' => 'text-success']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
         <?php endif; ?>

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

             <?php if(globalPermission('day-to-day-billing-dashboard')): ?>
                 <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('d-2-d-admin-dashboard')): ?>
                     <?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 endif; ?>
             <?php else: ?>
                 <?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 endif; ?>




             

             <?php
                 $isBillingDashboard = globalPermission('day-to-day-billing-dashboard');
                 $isDashboardCounter = auth()->user()->can('d-2-d-admin-dashboard');

                 if ($isBillingDashboard && !$isDashboardCounter) {
                     $link = route('paymentReport');
                     $value = round($thisMonthBillCollection) ?? 0;
                 } else {
                     $link = route('bill-generate');
                     $value = round($thisMonthBillPaid) + round($resellerCurrentMonthCollection) ?? 0;
                 }
             ?>

             <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e($link).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' COL '.e(today()->format('Y')).'','value' => ''.e($value).'','bgcolor' => 'bgYellow','iconColor' => 'bgYellow']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e($link).'','icon' => 'calendar-check','title' => ''.e(today()->format('F')).' COL '.e(today()->format('Y')).'','value' => ''.e($value).'','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(globalPermission('day-to-day-billing-dashboard')): ?>
                 <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('d-2-d-admin-dashboard')): ?>
                     <?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 endif; ?>
             <?php else: ?>
                 <?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 endif; ?>

             <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('paymentReport', 'today')).'','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', 'today')).'','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(globalPermission('day-to-day-billing-dashboard')): ?>
                 <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('d-2-d-admin-dashboard')): ?>
                     <?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 else: ?>
                 <?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 endif; ?>



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