Der Kalenderabgleich alle 5 Minuten hat jede fortbestehende Ueberschneidung erneut gemailt. ReportChannelConflicts legt jede Ueberschneidung einmal im neuen Postfach (InboxMessage, Fingerabdruck je Mandant) ab und mailt nur neue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
565 B
PHP
29 lines
565 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasColor;
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
/**
|
|
* What an inbox message is about.
|
|
*/
|
|
enum InboxMessageKind: string implements HasColor, HasLabel
|
|
{
|
|
case ChannelConflict = 'channel_conflict';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::ChannelConflict => 'Mögliche Doppelbuchung',
|
|
};
|
|
}
|
|
|
|
public function getColor(): string
|
|
{
|
|
return match ($this) {
|
|
self::ChannelConflict => 'danger',
|
|
};
|
|
}
|
|
}
|