public static function queryWhere()
 {
     $yc = new ycustomers();
     return "  WHERE tb_delivery_addresses.customer_id =" . $yc->getcustomerIDFromUserID();
 }
 function getUpdate(Request $request, $id = null)
 {
     if ($id == '') {
         if ($this->access['is_add'] == 0) {
             return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
         }
     }
     if ($id != '') {
         if ($this->access['is_edit'] == 0) {
             return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
         }
     }
     $row = $this->model->find($id);
     if ($row) {
         $this->data['row'] = $row;
     } else {
         $this->data['row'] = $this->model->getColumnTable('tb_delivery_addresses');
     }
     $this->data['setting'] = $this->info['setting'];
     $this->data['fields'] = \AjaxHelpers::fieldLang($this->info['config']['forms']);
     $this->data['id'] = $id;
     $gcid = new ycustomers();
     $this->data['cid'] = $gcid->getcustomerIDFromUserID();
     return view('deladdress.form', $this->data);
 }