Esempio n. 1
0
 public function customers()
 {
     $charts = array();
     foreach (InvoiceItem::TotalCountPerMonth()->WithoutStakeholders()->byKind()->get() as $item) {
         $charts[$item->kind ? $item->kind : self::LABEL_OTHERS][$item->period] = $item->total;
     }
     foreach ($charts as $name => $chart) {
         ksort($charts[$name]);
     }
     return View::make('stats.ca', array('charts' => $charts));
 }