Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/views/vendor/notifications/email.blade.php
7461 views
1
<!DOCTYPE html>
2
<html>
3
4
<head>
5
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
8
<style type="text/css" rel="stylesheet" media="all">
9
/* Media Queries */
10
@media only screen and (max-width: 500px) {
11
.button {
12
width: 100% !important;
13
}
14
}
15
</style>
16
</head>
17
18
<?php
19
20
$style = [
21
/* Layout ------------------------------ */
22
23
'body' => 'margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;',
24
'email-wrapper' => 'width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;',
25
26
/* Masthead ----------------------- */
27
28
'email-masthead' => 'padding: 25px 0; text-align: center;',
29
'email-masthead_name' => 'font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;',
30
31
'email-body' => 'width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;',
32
'email-body_inner' => 'width: auto; max-width: 570px; margin: 0 auto; padding: 0;',
33
'email-body_cell' => 'padding: 35px;',
34
35
'email-footer' => 'width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;',
36
'email-footer_cell' => 'color: #AEAEAE; padding: 35px; text-align: center;',
37
38
/* Body ------------------------------ */
39
40
'body_action' => 'width: 100%; margin: 30px auto; padding: 0; text-align: center;',
41
'body_sub' => 'margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;',
42
43
/* Type ------------------------------ */
44
45
'anchor' => 'color: #3869D4;',
46
'header-1' => 'margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;',
47
'paragraph' => 'margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;',
48
'paragraph-sub' => 'margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em;',
49
'paragraph-center' => 'text-align: center;',
50
51
/* Buttons ------------------------------ */
52
53
'button' => 'display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px;
54
background-color: #3869D4; border-radius: 3px; color: #ffffff; font-size: 15px; line-height: 25px;
55
text-align: center; text-decoration: none; -webkit-text-size-adjust: none;',
56
57
'button--green' => 'background-color: #22BC66;',
58
'button--red' => 'background-color: #dc4d2f;',
59
'button--blue' => 'background-color: #3869D4;',
60
];
61
?>
62
63
<?php $fontFamily = 'font-family: Arial, \'Helvetica Neue\', Helvetica, sans-serif;'; ?>
64
65
<body style="{{ $style['body'] }}">
66
<table width="100%" cellpadding="0" cellspacing="0">
67
<tr>
68
<td style="{{ $style['email-wrapper'] }}" align="center">
69
<table width="100%" cellpadding="0" cellspacing="0">
70
<!-- Logo -->
71
<tr>
72
<td style="{{ $style['email-masthead'] }}">
73
<a style="{{ $fontFamily }} {{ $style['email-masthead_name'] }}" href="{{ url('/') }}" target="_blank">
74
{{ config('app.name') }}
75
</a>
76
</td>
77
</tr>
78
79
<!-- Email Body -->
80
<tr>
81
<td style="{{ $style['email-body'] }}" width="100%">
82
<table style="{{ $style['email-body_inner'] }}" align="center" width="570" cellpadding="0" cellspacing="0">
83
<tr>
84
<td style="{{ $fontFamily }} {{ $style['email-body_cell'] }}">
85
<!-- Greeting -->
86
<h1 style="{{ $style['header-1'] }}">
87
@if (! empty($greeting))
88
{{ $greeting }}
89
@else
90
@if ($level == 'error')
91
Whoops!
92
@else
93
Hello!
94
@endif
95
@endif
96
</h1>
97
98
<!-- Intro -->
99
@foreach ($introLines as $line)
100
<p style="{{ $style['paragraph'] }}">
101
{{ $line }}
102
</p>
103
@endforeach
104
105
<!-- Action Button -->
106
@if (isset($actionText))
107
<table style="{{ $style['body_action'] }}" align="center" width="100%" cellpadding="0" cellspacing="0">
108
<tr>
109
<td align="center">
110
<?php
111
switch ($level) {
112
case 'success':
113
$actionColor = 'button--green';
114
break;
115
case 'error':
116
$actionColor = 'button--red';
117
break;
118
default:
119
$actionColor = 'button--blue';
120
}
121
?>
122
123
<a href="{{ $actionUrl }}"
124
style="{{ $fontFamily }} {{ $style['button'] }} {{ $style[$actionColor] }}"
125
class="button"
126
target="_blank">
127
{{ $actionText }}
128
</a>
129
</td>
130
</tr>
131
</table>
132
@endif
133
134
<!-- Outro -->
135
@foreach ($outroLines as $line)
136
<p style="{{ $style['paragraph'] }}">
137
{{ $line }}
138
</p>
139
@endforeach
140
141
<!-- Salutation -->
142
<p style="{{ $style['paragraph'] }}">
143
Regards,<br>{{ config('app.name') }}
144
</p>
145
146
<!-- Sub Copy -->
147
@if (isset($actionText))
148
<table style="{{ $style['body_sub'] }}">
149
<tr>
150
<td style="{{ $fontFamily }}">
151
<p style="{{ $style['paragraph-sub'] }}">
152
If you’re having trouble clicking the "{{ $actionText }}" button,
153
copy and paste the URL below into your web browser:
154
</p>
155
156
<p style="{{ $style['paragraph-sub'] }}">
157
<a style="{{ $style['anchor'] }}" href="{{ $actionUrl }}" target="_blank">
158
{{ $actionUrl }}
159
</a>
160
</p>
161
</td>
162
</tr>
163
</table>
164
@endif
165
</td>
166
</tr>
167
</table>
168
</td>
169
</tr>
170
171
<!-- Footer -->
172
<tr>
173
<td>
174
<table style="{{ $style['email-footer'] }}" align="center" width="570" cellpadding="0" cellspacing="0">
175
<tr>
176
<td style="{{ $fontFamily }} {{ $style['email-footer_cell'] }}">
177
<p style="{{ $style['paragraph-sub'] }}">
178
&copy; {{ date('Y') }}
179
<a style="{{ $style['anchor'] }}" href="{{ url('/') }}" target="_blank">{{ config('app.name') }}</a>.
180
All rights reserved.
181
</p>
182
</td>
183
</tr>
184
</table>
185
</td>
186
</tr>
187
</table>
188
</td>
189
</tr>
190
</table>
191
</body>
192
</html>
193
194