    <div class="card" style="height: 562px;">
        <div class="card-header" style="border-bottom: 1px solid #eee;">
            <span style="font-size: 19px; font-weight: 700; color: #22304A;">Polyp / Polypectomy</span>
        </div>
        <div class="card-body" style="padding: 32px 24px 0 24px;">
            <div class="row">
                <div class="col-7 d-flex flex-column align-items-center justify-content-center">
                    <div id="donut1" style="margin-bottom: 10px;"></div>

                </div>
                <div class="col-5 ">

                    <span style="font-weight: bold; font-size: 1.2rem; text-decoration: underline;">Polyp</span>
                    <ul style="list-style: none; padding-left: 0;">

                        <li style="font-size: 20px; margin-bottom: 4px;"><span style="color:#FFA94D;">●</span> <span style="color:#000;">Colonic Polyp ({{@$polyp['Colonic polyp']}}) </span></li>
                        <li style="font-size: 20px; margin-bottom: 4px;"><span style="color:#FFD6A5;">●</span> <span style="color:#000;">Cecal Polyp ({{@$polyp['Cecal polyp']}})</span></li>
                        <li style="font-size: 20px; margin-bottom: 4px;"><span style="color:#00B894;">●</span> <span style="color:#000;">Rectal Polyp ({{@$polyp['Rectal polyp']}})</span></li>
                        <li style="font-size: 20px;"><span style="color:#81ECEC;">●</span> <span style="color:#000;">Anal Polyp ({{@$polyp['Anal polyp']}})</span></li>
                    </ul>
                </div>
                <div class="row">
                    <div class="col-7">
                        <div id="donut2"></div>
                    </div>
                    <div class="col-5">
                        <span
                            style="font-weight: bold; font-size: 1.2rem; text-decoration: underline;">Polypectomy</span>
                        <ul style="list-style: none; padding-left: 0;">
                            <li style="font-size: 20px; margin-bottom: 4px;"><span style="color:#FFA94D;">●</span> <span style="color:#000;">Biopsy ({{@$polypectomy['Biopsy']}})</span></li>
                            <li style="font-size: 20px; margin-bottom: 4px;"><span style="color:#FFCC99;">●</span> <span style="color:#000;">EMR ({{@$polypectomy['EMR']}})</span></li>
                            <li style="font-size: 20px;"><span style="color:#0AB39C;">●</span> <span style="color:#000;">ESD ({{@$polypectomy['ESD']}})</span></li>
                            <li style="font-size: 20px;"><span style="color:#84D9CD;">●</span> <span style="color:#000;">Hot snare ({{@$polypectomy['Hot snare']}})</span></li>
                            <li style="font-size: 20px;"><span style="color:#00BFC4;">●</span> <span style="color:#000;">Cold snare ({{@$polypectomy['Cold snare']}})</span></li>
                        </ul>
                    </div>
                </div>

            </div>
        </div>
    </div>

<script>
    var donutOptions1 = {
        series:
        [{{ @$polyp['Colonic polyp'] }}, {{ @$polyp['Cecal polyp'] }}, {{ @$polyp['Rectal polyp'] }}, {{ @$polyp['Anal polyp'] }}],
        stroke: {
            width: 0
        },

        chart: {
            type: 'donut',
            height: 200
        },
        labels: ['Colonic Polyp', 'Cecal Polyp', 'Rectal Polyp', 'Anal Polyp'],
        colors: ['#FFA94D', '#FFD6A5', '#00B894', '#81ECEC'],
        legend: {
            show: false
        },
        plotOptions: {
            pie: {
                donut: {
                    size: '60%',
                    labels: {
                        show: true,
                        name: {
                            show: false
                        },
                        value: {
                            show: false
                        },
                        total: {
                            show: true,
                            label: '{{ @$polyp['Colonic polyp'] + @$polyp['Cecal polyp'] + @$polyp['Rectal polyp'] + @$polyp['Anal polyp'] }} pieces',
                            fontSize: '32px',
                            fontWeight: 700,
                            color: '#22304A'
                        }

                    }
                }
            }
        },

        dataLabels: {
            enabled: true,
            style: {
                fontSize: '18px',
                fontWeight: 600,
                colors: ['#000']
            },
            formatter: function(val) {
                return val.toFixed(1) + '%';
            }
        }
    };

    var donutOptions2 = {
        series: [{{ @$polypectomy['Biopsy'] }}, {{ @$polypectomy['EMR'] }}, {{ @$polypectomy['ESD'] }}, {{ @$polypectomy['Hot snare'] }}, {{ @$polypectomy['Cold snare'] }}],
        stroke: {
            width: 0
        },
        chart: {
            type: 'donut',
            height: 200
        },
        labels: ['Biopsy', 'EMR', 'ESD', 'Hot snare', 'Cold snare'],
        colors: ['#FFA94D', '#FFCC99', '#0AB39C', '#84D9CD', '#00BFC4'],
        legend: {
            show: false,
            position: 'bottom',
            fontSize: '14px',
            markers: {
                width: 12,
                height: 12,
                radius: 6
            }
        },
        tooltip: {
            enabled: true,
            y: {
                formatter: function(value) {
                    return value + ' pieces';
                }
            }
        },
        plotOptions: {
            pie: {
                donut: {
                    size: '60%',
                    labels: {
                        show: true,
                        name: {
                            show: false
                        },
                        value: {
                            show: false
                        },

                    }
                }
            }
        },
        dataLabels: {
            enabled: true,
            style: {
                fontSize: '20px',
                fontWeight: 600,
                colors: ['#000']
            },
            formatter: function(val) {
                return val.toFixed(1) + '%';
            }
        }
    };

    var chart1 = new ApexCharts(document.querySelector("#donut1"), donutOptions1);
    chart1.render();
    var chart2 = new ApexCharts(document.querySelector("#donut2"), donutOptions2);
    chart2.render();
</script>
