mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
34 lines
748 B
PHP
34 lines
748 B
PHP
<?php
|
|
|
|
namespace Modules\Listing\States;
|
|
|
|
use Filament\Support\Contracts\HasColor;
|
|
use Filament\Support\Contracts\HasDescription;
|
|
use Filament\Support\Contracts\HasIcon;
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
class ExpiredListingStatus extends ListingStatus implements HasColor, HasDescription, HasIcon, HasLabel
|
|
{
|
|
protected static string $name = 'expired';
|
|
|
|
public function getLabel(): ?string
|
|
{
|
|
return 'Expired';
|
|
}
|
|
|
|
public function getColor(): string | array | null
|
|
{
|
|
return 'danger';
|
|
}
|
|
|
|
public function getIcon(): ?string
|
|
{
|
|
return 'heroicon-o-x-circle';
|
|
}
|
|
|
|
public function getDescription(): ?string
|
|
{
|
|
return 'Listing is no longer active due to expiry.';
|
|
}
|
|
}
|