<div class="row m-0" style="">
    <div class="card ">
        <div class="card-header d-flex justify-content-between">
            <span class="text-header-chart">Physician</span>
            <a href="<?php echo e(url('allanalysis/physician') . (count(request()->query()) ? ('?' . http_build_query(request()->query())) : '')); ?>"
                class="btn btn-light">Show all</a>
        </div>
        <div class="card-body p-0">
            <div id="bar_physician1" data-colors='["--vz-success"]' class="" dir="ltr"></div>
        </div>
    </div>
</div>
<script>
    <?php
        $for_max = (is_array($physician) && count($physician) > 0) ? max($physician) + 10 : 0;
    ?>
    var options = {
        series: [{
            data: [
                <?php $__currentLoopData = @$physician ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php echo e($val); ?>,
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            ]
        }],
        chart: {
            type: 'bar',
            height: 210,
            width: '100%',
        },
        plotOptions: {
            bar: {
                borderRadius: 4,
                horizontal: true,
            }
        },
        dataLabels: {
            enabled: true
        },
        xaxis: {
            categories: [
                <?php $__currentLoopData = $physician ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    '<?php echo e($key); ?>',
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            ],
            labels: {formatter: function (value) {return Math.floor(value);}},
            tickAmount: 5,
            max: <?php echo e(@$for_max); ?>

        },
        fill: {
            colors: ['#80E4E7']
        }
    };

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


<?php /**PATH D:\laragon\htdocs\screening\resources\views/allanalysis/10_Physician.blade.php ENDPATH**/ ?>