Example #1
0
 public function database($chart = 0)
 {
     $navBar = \App\Myclasses\Arrays::chartNav();
     $total = count($navBar);
     $navigator = \App\Myclasses\Arrays::prepareNavigation($total, $chart);
     $count = \App\Myclasses\Arrays::allStarsArray(1);
     switch ($chart) {
         case 0:
             $charter = \App\Myclasses\charters\Charter::draw(0);
             $colors = \App\Myclasses\Arrays::colorList();
             return view($this->localeDir . 'chartforms.0', compact('chart', 'navBar', 'navigator', 'charter', 'colors'));
         case 1:
             return view($this->localeDir . 'chartforms.1', compact('chart', 'navBar', 'navigator', 'count'));
         case 2:
             return view($this->localeDir . 'chartforms.2', compact('chart', 'navBar', 'navigator'));
         case 3:
             return view($this->localeDir . 'chartforms.3', compact('chart', 'navBar', 'navigator', 'count'));
     }
 }
Example #2
0
 public function moderationCharts(Request $request)
 {
     $data = $request->all();
     $colors = Arrays::colorList();
     if (isset($data['step'])) {
         $data['planet'] = 543210;
         $chart = Charter::draw(1, $data);
         if ($chart->anything == 0) {
             return \App\Myclasses\Response::noData();
         } else {
             return view($this->localeDir . 'charts.firstModeration', compact('chart', 'colors'));
         }
     } else {
         $chart = Charter::draw(3, $data);
         if (!$chart->result) {
             return \App\Myclasses\Response::noData();
         }
         return view($this->localeDir . 'charts.threeModer', compact('chart', 'colors'));
     }
 }