芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Notifications/User/Withdraw/ApprovedByAdminMail.php
user = $user; $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $user = $this->user; $data = $this->data; $trx_id = $this->data->trx_id; $date = Carbon::now(); $dateTime = $date->format('Y-m-d h:i:s A'); return (new MailMessage) ->greeting("Hello ".$user->fullname." !") ->subject("Withdraw Money Via ". $data->gateway_name.' ('.$data->gateway_type.' )') ->line("Your withdraw money request approved successfully via ".$data->gateway_name." , details of withdraw money:") ->line("Transaction Id: " .$trx_id) ->line("Request Amount: " . getAmount($data->amount,4).' '.get_default_currency_code()) ->line("Exchange Rate: " ." 1 ". get_default_currency_code().' = '. getAmount($data->gateway_rate,4).' '.$data->gateway_currency) ->line("Fees & Charges: " . getAmount($data->gateway_charge,4).' '.$data->gateway_currency) ->line("Will Get: " . get_amount($data->will_get,$data->gateway_currency,'',4)) ->line("Total Payable Amount: " . get_amount($data->payable,get_default_currency_code(),'4')) ->line("Status: Successful") ->line("Date And Time: " .$dateTime) ->line('Thank you for using our application!'); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }