- Implemented TransactionIndex component for displaying transactions with pagination and filtering options. - Created TransactionCardRow component for rendering individual transaction details. - Added TransactionItemSubRow component for displaying detailed order items within a transaction. - Integrated delete confirmation dialog for transaction deletion. - Updated routes to include transaction management with appropriate permissions.
24 lines
398 B
PHP
24 lines
398 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use App\Enums\Concerns\HasValues;
|
|
|
|
enum OrderChannel: string
|
|
{
|
|
use HasValues;
|
|
|
|
case STORE = 'store';
|
|
case SHOPEE = 'shopee';
|
|
case TIKTOK = 'tiktok';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::STORE => 'Toko',
|
|
self::SHOPEE => 'Shopee',
|
|
self::TIKTOK => 'TikTok',
|
|
};
|
|
}
|
|
}
|