CuttingStatus::class, ]; } public function statusLabel(): Attribute { return Attribute::make( get: fn () => $this->status->label(), ); } public function createdAtFormatted(): Attribute { return Attribute::make( get: fn () => $this->created_at?->translatedFormat('l, d F Y H:i'), ); } public function createdBy(): BelongsTo { return $this->belongsTo(User::class, 'created_by_id'); } public function materials(): HasMany { return $this->hasMany(CuttingMaterial::class); } public function results(): HasMany { return $this->hasMany(CuttingResult::class); } }