add swiftpayments from old source
This commit is contained in:
49
app/Modules/Swiftpayment/Models/SwiftPaymentStatus.php
Normal file
49
app/Modules/Swiftpayment/Models/SwiftPaymentStatus.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user