Merge branch 'master' of https://git.oyd.org.tr/oyd/bagis
commit
67cc77ddf6
@ -0,0 +1,34 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace App\Mail; |
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable; |
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue; |
||||||
|
use Illuminate\Mail\Mailable; |
||||||
|
use Illuminate\Queue\SerializesModels; |
||||||
|
use App\Donation; |
||||||
|
|
||||||
|
class SuccessfulPayment extends Mailable |
||||||
|
{ |
||||||
|
use Queueable, SerializesModels; |
||||||
|
public $donation; |
||||||
|
/** |
||||||
|
* Create a new message instance. |
||||||
|
* |
||||||
|
* @return void |
||||||
|
*/ |
||||||
|
public function __construct(Donation $donation) |
||||||
|
{ |
||||||
|
$this->donation = $donation; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Build the message. |
||||||
|
* |
||||||
|
* @return $this |
||||||
|
*/ |
||||||
|
public function build() |
||||||
|
{ |
||||||
|
return $this->subject("Thank you for your donation!")->markdown('emails.successfulpayment'); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
@component('mail::message') |
||||||
|
# Thank you for your donation! |
||||||
|
|
||||||
|
We received your {{$donation->amount}} {{$donation->currency}} USD donation. |
||||||
|
|
||||||
|
Name: {{$donation->first_name}} {{$donation->last_name}} |
||||||
|
|
||||||
|
Amount: {{$donation->amount}} {{$donation->currency}} |
||||||
|
|
||||||
|
Transaction Date: {{$donation->created_at}} |
||||||
|
|
||||||
|
Next Payment Date: {{$donation->next_payment_at}} |
||||||
|
|
||||||
|
|
||||||
|
@endcomponent |
Loading…
Reference in new issue