芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Notifications/User/MobileTopup/TopupMail.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("Mobile Topup For ". $data->topup_type.' ('.$data->mobile_number.' )') ->line("Your mobile topup request send to admin successfully for ".$data->topup_type." , details of mobile topup:") ->line("Transaction Id: " .$trx_id) ->line("Request Amount: " . getAmount($data->request_amount,4).' '.get_default_currency_code()) ->line("Fees & Charges: " . getAmount($data->charges,4).' '.get_default_currency_code()) ->line("Total Payable Amount: " . get_amount($data->payable,get_default_currency_code(),'4')) ->line("Status: ". $data->status) ->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 [ // ]; } }