芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Http/Resources/User/RemittanceLogs.php
1, "pending" => 2, "rejected" => 3, ]; $basic_settings = BasicSettings::first(); if( @$this->details->remitance_type == "wallet-to-wallet-transfer"){ $transactionType = @$basic_settings->site_name." Wallet"; }else{ $transactionType = ucwords(str_replace('-', ' ', @$this->details->remitance_type)); } if($this->attribute == payment_gateway_const()::SEND){ if(@$this->details->remitance_type == Str::slug(GlobalConst::TRX_WALLET_TO_WALLET_TRANSFER)){ return[ 'id' => @$this->id, 'type' =>$this->attribute, 'trx' => @$this->trx_id, 'transaction_type' => $this->type, 'transaction_heading' => "Send Remitance to @" . $this->details->receiver->firstname.' '.@$this->details->receiver->lastname." (".@$this->details->receiver->mobile_code.@$this->details->receiver->mobile.")", 'request_amount' => getAmount(@$this->request_amount,2).' '.get_default_currency_code() , 'total_charge' => getAmount(@$this->charge->total_charge,2).' '.get_default_currency_code(), 'exchange_rate' => "1".' '. get_default_currency_code().' = '. get_amount($this->details->to_country->rate,$this->details->to_country->code), 'payable' => getAmount(@$this->payable,2).' '.get_default_currency_code(), 'sending_country' => @$this->details->form_country, 'receiving_country' => @$this->details->to_country->country, 'receipient_name' => @$this->details->receiver->firstname.' '.@$this->details->receiver->lastname, 'remittance_type' => Str::slug(GlobalConst::TRX_WALLET_TO_WALLET_TRANSFER) , 'remittance_type_name' => $transactionType , 'receipient_get' => get_amount(@$this->details->recipient_amount,$this->details->to_country->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 , 'rejection_reason' =>$this->reject_reason??"" , ]; }elseif(@$this->details->remitance_type == Str::slug(GlobalConst::TRX_BANK_TRANSFER)){ return[ 'id' => @$this->id, 'type' =>$this->attribute, 'trx' => @$this->trx_id, 'transaction_type' => $this->type, 'transaction_heading' => "Send Remitance to @" . $this->details->receiver->firstname.' '.@$this->details->receiver->lastname." (".@$this->details->receiver->mobile_code.@$this->details->receiver->mobile.")", 'request_amount' => getAmount(@$this->request_amount,2).' '.get_default_currency_code() , 'total_charge' => getAmount(@$this->charge->total_charge,2).' '.get_default_currency_code(), 'exchange_rate' => "1".' '. get_default_currency_code().' = '. get_amount($this->details->to_country->rate,$this->details->to_country->code), 'payable' => getAmount(@$this->payable,2).' '.get_default_currency_code(), 'sending_country' => @$this->details->form_country, 'receiving_country' => @$this->details->to_country->country, 'receipient_name' => @$this->details->receiver->firstname.' '.@$this->details->receiver->lastname, 'remittance_type' => Str::slug(GlobalConst::TRX_BANK_TRANSFER) , 'remittance_type_name' => $transactionType , 'receipient_get' => get_amount(@$this->details->recipient_amount,$this->details->to_country->code), 'bank_name' => ucwords(str_replace('-', ' ', @$this->details->receiver->alias)), 'current_balance' => getAmount(@$this->available_balance,2).' '.get_default_currency_code(), 'status' => @$this->stringStatus->value , 'date_time' => @$this->created_at , 'status_info' =>(object)@$statusInfo , 'rejection_reason' =>$this->reject_reason??"", ]; }elseif(@$this->details->remitance_type == Str::slug(GlobalConst::TRX_CASH_PICKUP)){ return[ 'id' => @$this->id, 'type' =>$this->attribute, 'trx' => @$this->trx_id, 'transaction_type' => $this->type, 'transaction_heading' => "Send Remitance to @" . $this->details->receiver->firstname.' '.@$this->details->receiver->lastname." (".@$this->details->receiver->mobile_code.@$this->details->receiver->mobile.")", 'request_amount' => getAmount(@$this->request_amount,2).' '.get_default_currency_code() , 'total_charge' => getAmount(@$this->charge->total_charge,2).' '.get_default_currency_code(), 'exchange_rate' => "1".' '. get_default_currency_code().' = '. get_amount($this->details->to_country->rate,$this->details->to_country->code), 'payable' => getAmount(@$this->payable,2).' '.get_default_currency_code(), 'sending_country' => @$this->details->form_country, 'receiving_country' => @$this->details->to_country->country, 'receipient_name' => @$this->details->receiver->firstname.' '.@$this->details->receiver->lastname, 'remittance_type' => Str::slug(GlobalConst::TRX_CASH_PICKUP) , 'remittance_type_name' => $transactionType , 'receipient_get' => get_amount(@$this->details->recipient_amount,$this->details->to_country->code), 'pickup_point' => ucwords(str_replace('-', ' ', @$this->details->receiver->alias)), 'current_balance' => getAmount(@$this->available_balance,2).' '.get_default_currency_code(), 'status' => @$this->stringStatus->value , 'date_time' => @$this->created_at , 'status_info' =>(object)@$statusInfo , 'rejection_reason' =>$this->reject_reason??"" , ]; } } } }