Example #1
0
 /**
  * get date availabe report Savings.
  *
  * @return bool
  */
 public function getAllDate()
 {
     $tanggal = new \Andriynto\Ebri\Libs\IndonesiaDate();
     $dates = [];
     $query = DB::table($this->table)->select('date_report')->groupBy('date_report')->orderBy('date_report', 'desc')->get();
     foreach ($query as $date) {
         $dates[$date->date_report] = $tanggal->tgl_indo($date->date_report);
     }
     return $dates;
 }
Example #2
0
 /**
  * get Date register on Savings.
  *
  * @return View
  */
 public function getAllDate()
 {
     $dates = [];
     $tanggal = new \Andriynto\Ebri\Libs\IndonesiaDate();
     $model = $this->createModel();
     $result = $model->newQuery()->select('date_report')->groupBy('date_report')->orderBy('date_report', 'desc')->get();
     foreach ($result as $date) {
         $dates[$date->date_report] = $tanggal->tgl_indo($date->date_report);
     }
     return $dates;
 }
Example #3
0
 /**
  * Set Header table report
  *
  * @param dates
  */
 public function header($dates)
 {
     $tanggal = new \Andriynto\Ebri\Libs\IndonesiaDate();
     $rowHeader = [];
     foreach ($dates as $date) {
         array_push($rowHeader, $tanggal->tgl_indo($date));
     }
     return $rowHeader;
 }