<script>
    
$(function() {
    "use strict";
    function initializeexpensecategorydonutChart() {
        Morris.Donut({
            element: 'expensecategorydonutChart',
            data: [
            <?php $__currentLoopData = $yearly_data['expenses']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $expense_category => $expense_chart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                {label: "<?php echo e($expense_category); ?>", value: <?php echo e($expense_chart); ?>},
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            ],
            labelColor: '#23AE89',
            colors: ['#E67A77', '#D9DD81', '#79D1CF', '#95D7BB']
        });     
    }
    initializeexpensecategorydonutChart();

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