Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117888397
PaymentMandateDisabled.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
PaymentMandateDisabled.php
View Options
<?php
namespace
App\Mail
;
use
App\User
;
use
App\Utils
;
use
App\Wallet
;
use
Illuminate\Bus\Queueable
;
use
Illuminate\Mail\Mailable
;
use
Illuminate\Queue\SerializesModels
;
class
PaymentMandateDisabled
extends
Mailable
{
use
Queueable
;
use
SerializesModels
;
/** @var \App\Wallet A wallet for which the mandate has been disabled */
protected
$wallet
;
/** @var \App\User A wallet controller to whom the email is being send */
protected
$user
;
/**
* Create a new message instance.
*
* @param \App\Wallet $wallet A wallet that has been charged
* @param \App\User $user An email recipient
*
* @return void
*/
public
function
__construct
(
Wallet
$wallet
,
User
$user
)
{
$this
->
wallet
=
$wallet
;
$this
->
user
=
$user
;
}
/**
* Build the message.
*
* @return $this
*/
public
function
build
()
{
$user
=
$this
->
user
;
$subject
=
\trans
(
'mail.paymentmandatedisabled-subject'
,
[
'site'
=>
\config
(
'app.name'
)]);
$this
->
view
(
'emails.html.payment_mandate_disabled'
)
->
text
(
'emails.plain.payment_mandate_disabled'
)
->
subject
(
$subject
)
->
with
([
'site'
=>
\config
(
'app.name'
),
'subject'
=>
$subject
,
'username'
=>
$user
->
name
(
true
),
'walletUrl'
=>
Utils
::
serviceUrl
(
'/wallet'
),
'supportUrl'
=>
\config
(
'app.support_url'
),
]);
return
$this
;
}
/**
* Render the mail template with fake data
*
* @param string $type Output format ('html' or 'text')
*
* @return string HTML or Plain Text output
*/
public
static
function
fakeRender
(
string
$type
=
'html'
):
string
{
$wallet
=
new
Wallet
();
$user
=
new
User
([
'email'
=>
'test@'
.
\config
(
'app.domain'
),
]);
$mail
=
new
self
(
$wallet
,
$user
);
return
Helper
::
render
(
$mail
,
$type
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Apr 6, 3:18 AM (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/3f/0bf90f39f08cdf5519f1fc360e50
Default Alt Text
PaymentMandateDisabled.php (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline