File manager - Edit - /var/www/payraty/accounting_main/app/Models/Mail/CustomerInvoiceSend.php
Back
<?php namespace App\Models\Mail; use App\Models\Utility; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class CustomerInvoiceSend extends Mailable { use Queueable, SerializesModels; public $invoice; /** * Create a new message instance. * * @return void */ public function __construct($invoice) { $this->invoice = $invoice; } /** * Build the message. * * @return $this */ public function build() { if(\Auth::user()->type == 'super admin') { return $this->view('email.customer_invoice_send')->with('invoice', $this->invoice)->subject('Ragarding to Send Invoice'); } else { return $this->from(Utility::getValByName('company_email'), Utility::getValByName('company_email_from_name'))->view('email.customer_invoice_send')->with('invoice', $this->invoice)->subject('Ragarding to Send Invoice'); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings