dstpabuaran.com/app/Enums/ProductStatus.php
Yoga Pangestu 85556f8779 feat: enhance product management with approval and rejection workflows
- Added approval and rejection functionality for products, including new routes and methods in the ProductController.
- Implemented UI changes to display product status (pending, rejected) with appropriate badges and actions.
- Introduced a RejectDialog component for providing rejection reasons.
- Updated product columns to handle new actions for approving and rejecting products.
- Enhanced variant management to restrict actions based on product status.
- Refactored various components to improve code organization and readability.
2026-08-07 11:23:41 +07:00

28 lines
563 B
PHP

<?php
namespace App\Enums;
use App\Enums\Concerns\HasValues;
enum ProductStatus: string
{
use HasValues;
case ACTIVE = 'active';
case INACTIVE = 'inactive';
case DRAFT = 'draft';
case PENDING = 'pending';
case REJECTED = 'rejected';
public function label(): string
{
return match ($this) {
self::ACTIVE => 'Aktif',
self::INACTIVE => 'Non Aktif',
self::DRAFT => 'Draft',
self::PENDING => 'Menunggu Verifikasi',
self::REJECTED => 'Ditolak',
};
}
}