public function getGenerarSaberBasica($id)
 {
     $usuario = Auth::user();
     $informar = Informe::where('id', $id)->where('simulacro', 'Tu saber')->first();
     $lava = new Lavacharts();
     // See note below for Laravel
     $materias = $lava->DataTable();
     $materias->addStringColumn('Simulacros');
     $materias->addNumberColumn('Cognitiva');
     $materias->addNumberColumn('Comunicativa');
     $materias->addNumberColumn('Socio-Afectiva');
     $materias->setDateTimeFormat('Y');
     for ($i = 0; $i < sizeof($informar); $i++) {
         $simu = '.';
         $materias->addRow([$simu, $informar->proMat1, $informar->proMat2, $informar->proMat3]);
     }
     $lava->ColumnChart('Simulacros', $materias, ['titleTextStyle' => ['color' => '#6f6ae1', 'fontSize' => 50], 'legend' => ['position' => 'none'], 'colors' => ['#49ABAA', '#A8A913', '#DAA10E'], 'datatable' => $materias, 'barGroupWidth' => 5, 'width' => 490, 'height' => 330, 'isStacked' => false, 'vAxis' => ['format' => 'decimal', 'minValue' => 0, 'maxValue' => 100, 'gridlines' => ['count' => 6]], 'hAxis' => ['format' => 'decimal']]);
     return view('informes.generar-saber-basica', ['informar' => $informar, 'lava' => $lava]);
 }
            }
        }
        //echo base_url() . 'admin/rapport_upload/';
        $top = array_combine($topsökord, $topklicks);
        arsort($top);
        array_shift($top);
        $top5 = array_slice($top, 0, 5);
        while ($sökord = current($top5)) {
            $sökordtop[] = key($top5);
            $klickstop[] = $sökord;
            next($top5);
        }
        $lava = new Lavacharts();
        $finances = $lava->DataTable();
        $finances->addStringColumn('sökord')->addNumberColumn('Klick')->setDateTimeFormat('Y')->addRow(array($sökordtop[0], $klickstop[0]))->addRow(array($sökordtop[1], $klickstop[1]))->addRow(array($sökordtop[2], $klickstop[2]))->addRow(array($sökordtop[3], $klickstop[3]))->addRow(array($sökordtop[4], $klickstop[4]));
        $columnchart = $lava->ColumnChart('Finances')->setOptions(array('datatable' => $finances, 'title' => 'Top 5 sökord', 'colors' => ['#de232a'], 'titleTextStyle' => $lava->TextStyle(array('color' => '#de232a', 'fontSize' => 20))));
        ?>
								 <h2 id="csv-title"><?php 
        echo $period['0'];
        ?>
</h2>
								 <div id="<?php 
        echo $period['0'];
        ?>
"></div>
								 <?php 
        echo $lava->render('ColumnChart', 'Finances', $period['0']);
        ?>
								 <div class="csv">
    <?php 
        if ($getallrapport != '') {