芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Http/Resources/User/MakePaymentLogs.php
1, "pending" => 2, "rejected" => 3, ]; if($this->attribute == payment_gateway_const()::SEND){ return[ 'id' => @$this->id, 'type' =>$this->attribute, 'trx' => @$this->trx_id, 'transaction_type' => $this->type, 'transaction_heading' => "Make Payment to @" . @$this->details->receiver->fullname." (".@$this->details->receiver->full_mobile.")", 'request_amount' => getAmount(@$this->request_amount,2).' '.get_default_currency_code() , 'total_charge' => getAmount(@$this->charge->total_charge,2).' '.get_default_currency_code(), 'payable' => getAmount(@$this->payable,2).' '.get_default_currency_code(), 'recipient_received' => getAmount(@$this->details->recipient_amount,2).' '.get_default_currency_code(), 'current_balance' => getAmount(@$this->available_balance,2).' '.get_default_currency_code(), 'status' => @$this->stringStatus->value , 'date_time' => @$this->created_at , 'status_info' =>(object)@$statusInfo , ]; }elseif($this->attribute == payment_gateway_const()::RECEIVED){ return[ 'id' => @$this->id, 'type' =>$this->attribute, 'trx' => @$this->trx_id, 'transaction_type' => $this->type, 'transaction_heading' => "Received Money from @" .@$this->details->sender->fullname." (".@$this->details->sender->full_mobile.")", 'recipient_received' => getAmount(@$this->request_amount,2).' '.get_default_currency_code(), 'current_balance' => getAmount(@$this->available_balance,2).' '.get_default_currency_code(), 'status' => @$this->stringStatus->value , 'date_time' => @$this->created_at , 'status_info' =>(object)@$statusInfo , ]; } } }