<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="col-md-6 mx-auto">
                <div id="detailschart"></div>
            </div>
        </div>
    </div>
</div>

<script>
    var options = {
        series: [@js(count(trackings(0))), @js(count(trackings(1))), @js(count(trackings(2))), @js(count(trackings(3))), @js(count(trackings(4))), @js(count(trackings(5)))],
        chart: {
            width: "100%",
            type: 'pie',
        },
        labels: ['Held', 'Placed Orders', 'Processings', 'Shipped', 'Delivered', 'Picked up'],
        responsive: [{
            breakpoint: 480,
            options: {
                chart: {
                    width: "100%",
                    height: "200%",
                },
                legend: {
                    position: 'bottom'
                }
            }
        }]
    };

    var chart = new ApexCharts(document.querySelector("#detailschart"), options);
    chart.render();
</script>
