mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
34 lines
737 B
PHP
34 lines
737 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 ActiveListingStatus extends ListingStatus implements HasColor, HasDescription, HasIcon, HasLabel
|
|
{
|
|
protected static string $name = 'active';
|
|
|
|
public function getLabel(): ?string
|
|
{
|
|
return 'Active';
|
|
}
|
|
|
|
public function getColor(): string | array | null
|
|
{
|
|
return 'success';
|
|
}
|
|
|
|
public function getIcon(): ?string
|
|
{
|
|
return 'heroicon-o-check-circle';
|
|
}
|
|
|
|
public function getDescription(): ?string
|
|
{
|
|
return 'Listing is visible to buyers.';
|
|
}
|
|
}
|