__('Status 0'), '1' => __('Status 1')]; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function game() { return $this->belongsTo('Game', 'game_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function provincearea() { return $this->belongsTo('Area', 'province_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function cityarea() { return $this->belongsTo('Area', 'city_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function area() { return $this->belongsTo('Area', 'area_id', 'id', [], 'LEFT')->setEagerlyType(0); } }