__('Status 1')]; } public function getStatusTextAttr($value, $data) { $value = $value ?: ($data['status'] ?? ''); $list = $this->getStatusList(); return $list[$value] ?? ''; } public function perimeter() { return $this->belongsTo(Perimeter::class, 'check_uid', 'id')->setEagerlyType(1); } public function waybill() { return $this->belongsTo(Waybill::class, 'waybill_id', 'id')->setEagerlyType(1); } }