Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.145.79.214
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/book24.ng/modules/Vendor/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/modules/Vendor/Models/VendorPayout.php
<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 9/13/2019
 * Time: 3:24 PM
 */
namespace Modules\Vendor\Models;

use App\BaseModel;
use App\User;

class VendorPayout extends BaseModel
{
    protected $table = 'bravo_payouts';

    public static function getAllStatuses(){
        return [
            'initial'=>[
                'title'=>__("Initial")
            ],
            'confirmed'=>[
                'title'=>__("Confirmed")
            ],
            'paid'=>[
                'title'=>__("Paid")
            ],
            'rejected'=>[
                'title'=>__("Rejected")
            ],
        ];
    }

    public function getPayoutMethodNameAttribute()
    {
        $all = json_decode(setting_item('vendor_payout_methods'));
        if(!empty($all))
        {
            foreach ($all as $item){
                if($item->id == $this->payout_method)
                {
                    return $item->name;
                }
            }
        }

        return $this->payout_method;
    }

    public function vendor(){
        return $this->hasOne(User::class,'id','vendor_id')->withDefault();
    }

    public function getStatusTextAttribute(){
        switch ($this->status){
            default:
                return booking_status_to_text($this->status);
                break;
        }
    }

    public static function countInitial(){
        return parent::query()->where('status','initial')->count('id');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit