|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/poskrypt/test.poskrypt.com/app/ |
Upload File : |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class PaymentAccount extends Model
{
use SoftDeletes;
public static function account_types()
{
return ['cash' => trans('lang_v1.cash'), 'card' => trans('lang_v1.card'),
'cheque' => trans('lang_v1.cheque'), 'bank_transfer' => trans('lang_v1.bank_transfer'),
'payment_gateway' => trans('lang_v1.payment_gateway'), 'other' => trans('lang_v1.other'),
];
}
public static function account_name($type)
{
$types = PaymentAccount::account_types();
return isset($types[$type]) ? $types[$type] : $type;
}
}