__('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 firmstoreprojectstwo() { return $this->belongsTo('Firmstoreprojectstwo', 'firmstoreprojectstwo_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function firmcustomerorigin() { return $this->belongsTo('Firmcustomerorigin', 'firmcustomerorigin_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function firmemployee() { return $this->belongsTo('Admin', 'admin_id', 'id', [], 'LEFT')->setEagerlyType(0); } }