'datetime', ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } public function order(): BelongsTo { return $this->belongsTo(Order::class); } public function replies(): HasMany { return $this->hasMany(CommunicationReply::class)->oldest(); } public function getStatusLabelAttribute(): string { return match ($this->status) { 'new' => 'Nieuw', 'in_progress' => 'In behandeling', 'resolved' => 'Beantwoord', 'closed' => 'Gesloten', default => ucfirst($this->status), }; } }