"; print_r($data['payouts']); exit(); $data['main_content'] = $this->load->view('admin/referral/payout_request',$data,TRUE); $this->load->view('admin/index',$data); } public function payout_complete($id) { $payout = $this->admin_model->get_by_md5($id,'payouts'); $user = $this->admin_model->get_by_id($payout->user_id,'users'); //echo ""; print_r($payout); exit(); if (!is_admin()) { redirect(base_url()); } check_status(); $data = array( 'status' => 1 ); $data = $this->security->xss_clean($data); $this->admin_model->edit_option_md5($data, $id,'payouts'); $settings = $this->admin_model->get_referral_settings(); $total_balance= $user->referral_earn; $remaining_balace = $total_balance - $payout->amount; //echo ""; print_r($payout->amount); exit(); $refdata = array( 'referral_earn' => $remaining_balace, ); $refdata = $this->security->xss_clean($refdata); $this->admin_model->edit_option($refdata, $user->id,'users'); $this->session->set_flashdata('msg', trans('updated-successfully')); redirect(base_url('admin/referral/payout_request')); } public function completed_payout() { //echo user()->referral_id;exit(); $data = array(); $data['page_title'] = 'Completed Payout'; $data['page'] = 'Affiliate'; $data['payouts'] = FALSE; $data['payouts'] = $this->admin_model->get_payouts_by_status(); //echo ""; print_r($data['payouts']); exit(); $data['main_content'] = $this->load->view('admin/referral/completed_payout',$data,TRUE); $this->load->view('admin/index',$data); } }
"; print_r($payout); exit(); if (!is_admin()) { redirect(base_url()); } check_status(); $data = array( 'status' => 1 ); $data = $this->security->xss_clean($data); $this->admin_model->edit_option_md5($data, $id,'payouts'); $settings = $this->admin_model->get_referral_settings(); $total_balance= $user->referral_earn; $remaining_balace = $total_balance - $payout->amount; //echo ""; print_r($payout->amount); exit(); $refdata = array( 'referral_earn' => $remaining_balace, ); $refdata = $this->security->xss_clean($refdata); $this->admin_model->edit_option($refdata, $user->id,'users'); $this->session->set_flashdata('msg', trans('updated-successfully')); redirect(base_url('admin/referral/payout_request')); } public function completed_payout() { //echo user()->referral_id;exit(); $data = array(); $data['page_title'] = 'Completed Payout'; $data['page'] = 'Affiliate'; $data['payouts'] = FALSE; $data['payouts'] = $this->admin_model->get_payouts_by_status(); //echo ""; print_r($data['payouts']); exit(); $data['main_content'] = $this->load->view('admin/referral/completed_payout',$data,TRUE); $this->load->view('admin/index',$data); } }
"; print_r($payout->amount); exit(); $refdata = array( 'referral_earn' => $remaining_balace, ); $refdata = $this->security->xss_clean($refdata); $this->admin_model->edit_option($refdata, $user->id,'users'); $this->session->set_flashdata('msg', trans('updated-successfully')); redirect(base_url('admin/referral/payout_request')); } public function completed_payout() { //echo user()->referral_id;exit(); $data = array(); $data['page_title'] = 'Completed Payout'; $data['page'] = 'Affiliate'; $data['payouts'] = FALSE; $data['payouts'] = $this->admin_model->get_payouts_by_status(); //echo ""; print_r($data['payouts']); exit(); $data['main_content'] = $this->load->view('admin/referral/completed_payout',$data,TRUE); $this->load->view('admin/index',$data); } }
"; print_r($data['payouts']); exit(); $data['main_content'] = $this->load->view('admin/referral/completed_payout',$data,TRUE); $this->load->view('admin/index',$data); } }