dstpabuaran.com/app/Enums/PaymentType.php
Yoga Pangestu 72848d51d8 feat: add transaction management page with filtering and CRUD functionality
- 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.
2026-08-04 10:37:28 +07:00

26 lines
481 B
PHP

<?php
namespace App\Enums;
use App\Enums\Concerns\HasValues;
enum PaymentType: string
{
use HasValues;
case CASH = 'cash';
case TRANSFER = 'transfer';
case MARKETPLACE = 'marketplace';
case QRIS = 'qris';
public function label(): string
{
return match ($this) {
self::CASH => 'Tunai',
self::TRANSFER => 'Transfer',
self::MARKETPLACE => 'Marketplace',
self::QRIS => 'QRIS',
};
}
}