__('Status yes'), 'no' => __('Status no')]; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function aicustomerservice() { return $this->belongsTo('Aicustomerservice', 'aicustomerservice_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function firm() { return $this->belongsTo('Firm', 'firm_id', 'id', [], 'LEFT')->setEagerlyType(0); } }