<?php
// คำนวณ total cancer จากข้อมูลที่มี
$total_cancer = 0;
foreach($tb_case_filer as $date => $val) {
    $total_cancer += $val['total_cancer'];
}

// ใช้ค่าที่ส่งมาจาก controller
$allday_cancer = $total_cancer;
$allday_all = $total_all_patients;
?>

<div class="col-4 mt-2">
    <div class="card h-charts">
        <div class="card-body align-items-center d-flex justify-content-center ">
            <div class="row text-center">
                <div class="col-12">
                    <span class="fs-50 text-nowrap">Colorectal Cancer </span>
                </div>
                <div class="col-12 text-nowrap">
                    <span class="text-danger h1 fs-50"><?php echo e(@$ca_case); ?> /</span>
                    <span class="text-muted h1">
                        
                        <?php echo e(@$all_case['total_all_patients']); ?>

                    </span>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH D:\laragon\htdocs\screening\resources\views/dashboardscreening/14_colorectalcancer.blade.php ENDPATH**/ ?>