<script>
    
$(function() {
    "use strict";
    function initializeincomeCategoryBarchart() {
        Morris.Bar({
            element: 'incomeCategoryBarchart',
            data: [
                <?php $__currentLoopData = $yearly_data['income']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $income_category => $income): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    {y: "<?php echo e($income_category); ?>", income: <?php echo e($income); ?>},
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            ],
            xkey: 'y',
            ykeys: ['income'],
            barColors: ['#95D7BB', '#79D1CF'],
            labels: ['<?php echo e(trans("global.income.title")); ?>']
        });
    }
    initializeincomeCategoryBarchart();

    $(window).resize(function() {        
        setTimeout(function() {
            $("#incomeCategoryBarchart").empty();
            initializeincomeCategoryBarchart();
        }, 200);
    });
});
</script><?php /**PATH E:\xampp\htdocs\laraoffice-ultimate-crm-and-project-management-system\resources\views/dashboard-parts/incomeCategoryBarchart-scripts.blade.php ENDPATH**/ ?>