belongsTo(P2hRecord::class, 'p2h_record_id'); } public function templateItem(): BelongsTo { return $this->belongsTo(P2hTemplateItem::class, 'template_item_id'); } public function isBaik(): bool { return strtolower((string)$this->condition_status) === 'baik'; } public function isRusak(): bool { return strtolower((string)$this->condition_status) === 'rusak'; } }