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

      <section class="row">
        <div class="col-md-9 no_padding" style="border: none;">
          
          <div class="para_title">
          <h6>NCLEX MASTERY QUESTIONS</h6>
        </div>
          <div class="small_title">
            <h3>NCLEX PREP > NCLEX MASTERY QUESTIONS</h3>
          </div>
          <div class="home_signin">
            <h3><a href="<?php echo url('/userpage');?>">HOME </a>/ QUESTIONS / NCLEX MASTERY QUESTIONS</h3>
          </div>
          <div class="bgcolour">
            <div class="row">
                    

                    <div class="col-md-12">
                        <!-- Tabs content -->
                        <?php //print_r($catreport);
                         $categories = array_column($catreport, 'category');
                         $test_details = array_column($catreport, 'test_details');
                         $color = array_column($catreport, 'color');
                        // print_r($categories);
                          $categories=json_encode($categories);
                         //echo "<br>";
                        $test_details=json_encode($test_details);
                           //echo "<br>";
                         $color=json_encode($color);
                         $newcatreport=json_encode($newcatreport);
                          //print_r($newcatreport);      
                        ?>
                      <!--   <svg viewBox="0 0 100 100">
      <circle cx="2" cy="2" r="2" />
    </svg>Not Taken Test <svg viewBox="0 0 100 100">
      <circle cx="2" cy="2" r="2" />
    </svg>Taken Test -->
                       <p>  <span class="dotg"></span><span class="textcolor">Test Taken</span> <span class="dotr"></span><span class="textcolor">Test Not Taken</span>
   </p>
                    <!--    <canvas id="myChart" style="width:100%;max-width:600px"></canvas> -->
                       <center><h6><b><?php echo $title;?></b></h6></center><div id="chartdiv1"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
<script>
// var xValues = ["Italy", "France", "Spain", "USA", "Argentina"];
// var yValues = [55, 49, 44, 24, 15];
// var barColors = [
//   "#b91d47",
//   "#00aba9",
//   "#2b5797",
//   "#e8c3b9",
//   "#1e7145"
// ];

var xValues = <?php echo $categories;?>;
var yValues = <?php echo $test_details;?>;
var barColors = <?php echo $color;?>;
// var barColors = [
//   "#b91d47",
//   "#00aba9",
//   "#2b5797",
//   "#e8c3b9",
//   "#1e7145"
// ];
//alert(xValues);
//alert(xValues);
new Chart("myChart", {
  type: "pie",
  data: {
    labels: xValues,
    datasets: [{
      backgroundColor: barColors,
      data: yValues
    }]
  },
  options: {
    title: {
      display: true,
      text: "categories Wise Test Taken Report"
    }
  }
});
</script>

                    </div>
                </div>
            </div>
        </div>
        <?php echo $__env->make('layouts.profile_sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
      </section>
    </div>
    <style type="text/css">
      .tab-content>.active {
    display: block;
    opacity: 1;
}
    </style>
    <?php $__env->stopSection(); ?>
<style>
      /*circle {
        fill: #1c87c9;
      }*/
    </style>
    <style>
.dotg {
      height: 14px;
    width: 16px;
  background-color:#CD0D74;
  /*border-radius: 50%;*/
  display: inline-block;
   
}
.dotr {
     height: 14px;
    width: 16px;
  background-color:#808080;
 /* border-radius: 50%;*/
  display: inline-block;

}
.p{
  font-size: 5px;
}
.textcolor
{
      font-size: 13px;
}
</style>
 <script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
<script src="https://www.amcharts.com/lib/3/pie.js"></script>
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<script type="text/javascript">
      AmCharts.makeChart("chartdiv1",
        {
          "type": "pie",
          "angle": 34.2,
          "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
          //"depth3D": 5,
          "labelRadius": 5,
          "minRadius": 120,
          // "baseColor": "#CD0D74",
          "colors": <?php echo $color;?>,
          "titleField": "category",
          "valueField": "column-1",
          "theme": "default",
          "allLabels": [],
          "balloon": {},
          "legend": {
            "enabled": true,
            "align": "center",
            "markerType": "circle"
          },
          // "titles": [{
          //   "text": "Categories Wise Test Taken Report",
          //   "size": 10
          //   }],
          "dataProvider": <?php echo $newcatreport;?>
        }
      );
    </script>
<?php echo $__env->make('layouts.front_app', ['class' => 'account-page', 'page' => __('My Account Page'), 'contentClass' => 'account-page','pageSlug' => 'my-account'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sibzsolu/public_html/training/stimclex/resources/views/userdashboard/categorywise_testreport.blade.php ENDPATH**/ ?>