50 lines
1.1 KiB
PHP
50 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Modules\Swiftpayment\Models;
|
|
|
|
class SwiftPaymentStatus
|
|
{
|
|
const PENDING = 'pending';
|
|
|
|
const REGISTER = 'register';
|
|
|
|
const PROGRESS = 'progress';
|
|
|
|
const COMPLETED = 'completed';
|
|
|
|
const CANCELLED = 'cancelled';
|
|
|
|
public static function values(): array
|
|
{
|
|
return [
|
|
self::PENDING => __('Pending'),
|
|
self::REGISTER => __('Registered'),
|
|
self::PROGRESS => __('On Progress'),
|
|
self::COMPLETED => __('Completed'),
|
|
self::CANCELLED => __('Cancelled'),
|
|
];
|
|
}
|
|
|
|
public static function classes(): array
|
|
{
|
|
return [
|
|
self::PENDING => 'warning',
|
|
self::REGISTER => 'info',
|
|
self::PROGRESS => 'primary',
|
|
self::COMPLETED => 'success',
|
|
self::CANCELLED => 'danger',
|
|
];
|
|
}
|
|
|
|
public static function colors(): array
|
|
{
|
|
return [
|
|
self::PENDING => '#F5573B',
|
|
self::REGISTER => '#F2CB22',
|
|
self::PROGRESS => '#098F56',
|
|
self::COMPLETED => '#8FC15D',
|
|
self::CANCELLED => '#d70206',
|
|
];
|
|
}
|
|
}
|