*/ protected $fillable = [ 'company_id', 'reference', 'amount', 'currency', 'counterparty', 'counterparty_country', 'channel', 'executed_at', 'risk_score', 'status', 'requires_review', 'flagged_by', 'flagged_reason', 'signals', ]; /** * @var array */ protected $casts = [ 'executed_at' => 'datetime', 'requires_review' => 'boolean', 'signals' => 'array', ]; public function company(): BelongsTo { return $this->belongsTo(Company::class); } public function statusLabel(): string { return match ($this->status) { self::STATUS_TRUE_POSITIVE => __('BestÃĪtigter Treffer'), self::STATUS_FALSE_POSITIVE => __('Fehlalarm'), default => __('Freigegeben'), }; } }