%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/ccd-ind-code/storage/framework/views/
Upload File :
Create Path :
Current File : //home/silvzytp/ccd-ind-code/storage/framework/views/186f6583166fbd48b33e37398285b46a642ad2f5.php

<?php $__env->startSection('title', $siteTitle); ?>
<?php $__env->startPush('styles'); ?>

<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>

    <div class="row">
        <?php $__currentLoopData = $compareData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $compare): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title d-flex align-items-center justify-content-between">Agent: <?php echo e($compare->name); ?>

                            <h6 class="mb-0">Total Calling: <?php echo e($compare->callings->count()); ?></h6>
                        </div>
                    </div>
                    <div class="card-body">
                        <div>
                            <canvas id="doughnut_chart-<?php echo e($compare->id); ?>"  class="compare-manager-data" style="height:200px;"></canvas>
                        </div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script src="<?php echo e(asset('assets')); ?>/vendors/chartjs/Chart.min.js" type="text/javascript"></script>
<script>
    <?php $__currentLoopData = $compareData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
            $openCount = DB::table('collings')->where(['agent_id'=>$value->id,'status'=>1])->count();
            $closedCount = DB::table('collings')->where(['agent_id'=>$value->id,'status'=>2])->count();
        ?>
        
        var target = {
            'open':"<?php echo e($openCount); ?>",
            'closed':"<?php echo e($closedCount); ?>"
        };

        var doughnutData = {
            labels: ['Open','Closed'],
            datasets: [{
                data: [target.open,target.closed],
                backgroundColor: ["rgb(54, 162, 235)","rgb(255, 99, 132)"]
            }]
        };

        var doughnutOptions = {
            responsive: true
        };

        var ctx4 = document.getElementById("doughnut_chart-<?php echo e($value->id); ?>").getContext("2d");

        new Chart(ctx4, {type: 'doughnut', data: doughnutData, options:doughnutOptions});
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/calling_code/resources/views/backend/pages/compare/compare.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0