HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/vlxd.naniguide.com/app/PaymentAccount.php
<?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;
    }
}