示例#1
0
 public function scopeGetCallHistory($scope, $caller_id)
 {
     $telecalls = TeleCall::where('caller_id', $caller_id)->select('')->get();
 }
示例#2
0
 public function all_tele_sale_history($page = 1)
 {
     $this->data['current_page'] = $page;
     $limit = 30;
     $offset = ($page - 1) * $limit;
     $current_gen = Gen::getCurrentGen();
     $this->data['gen'] = $current_gen;
     $this->data['telecalls'] = TeleCall::where('gen_id', $current_gen->id)->orderBy('updated_at', 'desc')->take($limit)->skip($offset)->get();
     $total = TeleCall::where('gen_id', $current_gen->id)->count();
     $this->data['total'] = $total;
     $num_pages = ceil($total / $limit);
     $this->data['num_pages'] = $num_pages;
     $this->data['current_tab'] = 12;
     return view('manage.all_telesale_history', $this->data);
 }