<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: [<?php echo \Illuminate\Support\Js::from(count(trackings(0)))->toHtml() ?>, <?php echo \Illuminate\Support\Js::from(count(trackings(1)))->toHtml() ?>, <?php echo \Illuminate\Support\Js::from(count(trackings(2)))->toHtml() ?>, <?php echo \Illuminate\Support\Js::from(count(trackings(3)))->toHtml() ?>, <?php echo \Illuminate\Support\Js::from(count(trackings(4)))->toHtml() ?>, <?php echo \Illuminate\Support\Js::from(count(trackings(5)))->toHtml() ?>],
        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>
<?php /**PATH /home/infosfg/incitycourier.live/resources/views/partials/dashboard-charts.blade.php ENDPATH**/ ?>