<section class="detail-area bg-white shadow-sm p-3 mb-5 rounded">
    <div class="row" style="row-gap: 10px;">
        <?php if(globalPermission('reseller-client-billing')): ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('reseller-billing-info')): ?>
                <?php
                    $currentMonth = today()->format('F');
                    $currentYear = today()->format('Y');
                ?>

                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('resellerBillGenerateReport')).'','icon' => 'calendar-check','title' => ''.e($currentMonth).' Bill '.e($currentYear).'','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('resellerBillGenerateReport')).'','icon' => 'calendar-check','title' => ''.e($currentMonth).' Bill '.e($currentYear).'','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('reseller-customer-payment-report')).'','icon' => 'calendar-check','title' => ''.e($currentMonth).' COL '.e($currentYear).'','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('reseller-customer-payment-report')).'','icon' => 'calendar-check','title' => ''.e($currentMonth).' COL '.e($currentYear).'','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('reseller-customer-payment-report')).'','icon' => 'calendar-check','title' => 'Discount '.e($currentMonth).' '.e($currentYear).'','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('reseller-customer-payment-report')).'','icon' => 'calendar-check','title' => 'Discount '.e($currentMonth).' '.e($currentYear).'','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('resellerBillGenerateReport')).'','icon' => 'calendar-check','title' => ''.e($currentMonth).' Due '.e($currentYear).'','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('resellerBillGenerateReport')).'','icon' => 'calendar-check','title' => ''.e($currentMonth).' Due '.e($currentYear).'','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('resellerBillGenerateReport')).'','icon' => 'funnel-dollar','title' => 'Total Due','value' => ''.e(round($otherResellerBillingInfo['total_due_amount'] ?? 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('resellerBillGenerateReport')).'','icon' => 'funnel-dollar','title' => 'Total Due','value' => ''.e(round($otherResellerBillingInfo['total_due_amount'] ?? 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('resellerBillGenerateReport')).'','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('resellerBillGenerateReport')).'','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 if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.dashboardBox','data' => ['link' => ''.e(route('reseller-customer-payment-report')).'','icon' => 'wallet','title' => 'Today Payment Received','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('reseller-customer-payment-report')).'','icon' => 'wallet','title' => 'Today Payment Received','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('reseller-customer-payment-report')).'','icon' => 'wallet','title' => 'This Month Payment Received','value' => ''.e(round($otherResellerBillingInfo['this_month_bill_collection'] ?? 0)).'','bgcolor' => 'bgGray','iconColor' => 'colorRed']]); ?>
<?php $component->withName('dashboardBox'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['link' => ''.e(route('reseller-customer-payment-report')).'','icon' => 'wallet','title' => 'This Month Payment Received','value' => ''.e(round($otherResellerBillingInfo['this_month_bill_collection'] ?? 0)).'','bgcolor' => 'bgGray','iconColor' => 'colorRed']); ?>
<?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/sajib/radius-circle/resources/views/dashboard/new/resellerCounter.blade.php ENDPATH**/ ?>