PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.4.0
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.4.0
2.4.1 2.4.0 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 All 68 releases
better-payment / includes / Admin / views / template-email-notification.php

template-email-notification.php in Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More 2.4.0, at includes/Admin/views/template-email-notification.php

462 lines 32.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( 'admin' === $type && 'plain' === $all_data['email_content_type'] ) : ?>
2 <?php echo $all_data['email_content_admin']; ?>
3 <?php elseif ( 'admin' !== $type && 'plain' === $all_data['email_content_type_customer'] ) : ?>
4 <?php echo $all_data['email_content_customer']; ?>
5 <?php else : ?>
6
7 <!-- admin / customer html email -->
8 <!-- start__style-sheets -->
9 <style>
10 /* font: IBM Plex Sans ; */
11 @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Play:wght@400;700&family=Syne:[email protected]&display=swap');
12
13 /* base */
14 * {
15 padding: 0px;
16 margin: 0px;
17 text-decoration: none;
18 list-style: none;
19 box-sizing: border-box;
20 }
21
22 body {
23 font-family: "IBM Plex Sans", sans-serif;
24 font-weight: 100;
25 font-style: normal;
26 }
27
28 @media screen and (max-width: 880px) {
29
30
31
32 /* hero-table */
33 h1.bp-title {
34 font-size: 34px;
35 }
36
37 p.bp-sub__title {
38 font-size: 18px;
39 }
40
41 /*/ hero-table */
42
43 .bp-inv__number {
44 font-size: 25px;
45 }
46
47 .bp-ive__date,
48 .bp-success {
49 font-size: 16px;
50 }
51
52 .bp-summary__table-wrapper {
53 padding: 12px;
54 }
55
56 .bp-invelop h4,
57 .bp-invelop .bp-name,
58 .bp-invelop .bp-email,
59 .bp-invelop .bp-content,
60 .bp-invelop .bp-address,
61 .bp-invelop .bp-ess__campaign,
62 .bp-invelop .bp-payment__methord span {
63 font-size: 16px;
64 margin-bottom: 8px;
65
66 }
67
68 .bp-summary__title,
69 h2.bp-footer__title {
70 font-size: 26px;
71 }
72
73 .bp-summary__table-header,
74 a.bp-footer__btn {
75 font-size: 16px;
76 }
77
78 .bp-summary__table-item__style,
79 .bp-table__data-output {
80 font-size: 14px;
81 line-height: 1.0;
82 }
83
84 td.bp-width__100p-active__tablet {
85 width: 100px;
86 }
87
88 td.bp-width__80p-active__tablet {
89 width: 80px;
90 }
91
92 }
93
94 @media screen and (max-width: 520px) {
95
96 /* base */
97 td.bp-width__60p-active__phone {
98 width: 60px;
99 }
100
101 .bp-text-align__center-active__phone {
102 text-align: center;
103 }
104
105
106 /* hero-table */
107 h1.bp-title {
108 font-size: 30px;
109 }
110
111 p.bp-sub__title {
112 font-size: 16px;
113 }
114
115 /*/ hero-table */
116
117 .bp-inv__number {
118 font-size: 18px;
119 }
120
121 .bp-ive__date,
122 .bp-success {
123 font-size: 13px;
124 }
125
126 .bp-summary__table-wrapper {
127 padding: 10px;
128 }
129
130 .bp-invelop h4,
131 .bp-invelop .bp-name,
132 .bp-invelop .bp-email,
133 .bp-invelop .bp-content,
134 .bp-invelop .bp-address,
135 .bp-invelop .bp-ess__campaign,
136 .bp-invelop .bp-payment__methord span {
137 font-size: 13px;
138 margin-bottom: 8px;
139
140 }
141
142 .bp-summary__title,
143 h2.bp-footer__title {
144 font-size: 23px;
145 }
146
147 .bp-summary__table-header,
148 .abp-footer__btn {
149 font-size: 13px;
150 }
151
152 .bp-summary__table-item__style,
153 .bp-table__data-output {
154 font-size: 12px;
155 line-height: 1.0;
156 }
157
158 }
159 </style>
160 <div style="width: 100%; table-layout: fixed;">
161 <table style="background-color: #fff; margin: 0 auto; width: 100%; max-width: 1200px; border-spacing: 0; padding-bottom: 50px; padding-left: 12px; padding-right: 12px;">
162 <!-- start Better payment email header -->
163 <?php if ( $all_data['email_content_heading_show'] || $all_data['is_elementor_form'] ) : ?>
164 <tr>
165 <td style="background: rgba(110, 88, 247, 1); width: 100%; padding: 55px 0; border-radius: 8px 8px 0 0; text-align: center;">
166 <img style="width: 100%; height: auto; max-width: 66px; margin-bottom: 10px;" src="<?php echo esc_url( BETTER_PAYMENT_ASSETS . '/img/email-tick.png' ); ?>" alt="<?php esc_html_e( 'email-tick', 'better-payment' ); ?>">
167
168 <?php if($type === 'admin') : ?>
169 <h1 style="color: #fff; font-size: 64px; font-weight: 500; margin: 0 0 10px; line-height: 1.2em"><?php esc_html_e( 'Great News! Admin', 'better-payment' ); ?></h1>
170 <p style="color: rgba(255, 255, 255, 1); font-size: 28px; font-weight: 400; margin: 0; line-height: 1.2em;"><?php esc_html_e( 'You have received a new transaction through', 'better-payment' ); ?> <?php esc_html_e( $all_data['form_name'], 'better-payment' ); ?></p>
171
172 <?php else : ?>
173 <h1 style="color: #fff; font-size: 64px; font-weight: 500; margin: 0 0 10px; line-height: 1.2em"><?php esc_html_e( 'Thank You!', 'better-payment' ); ?> <?php echo esc_html( $all_data['customer_name']); ?></h1>
174 <p style="color: rgba(255, 255, 255, 1); font-size: 28px; font-weight: 400; max-width: 930px; padding: 0 10px; margin: 0 auto; line-height: 1.2em;"><?php printf( __( 'This is to acknowledge that we have received the payment of %s %s on %s', 'better-payment' ), esc_html( $all_data['amount'] ), esc_html( $all_data['currency'] ), esc_html( $all_data['payment_date_time'] ) ); ?></p>
175 <?php endif; ?>
176
177 </td>
178 </tr>
179 <?php endif; ?>
180 <!-- end Better payment email header -->
181
182 <tr>
183 <td style="background-color: #fff;">
184 <!-- invoice table -->
185 <table style="width: 100%; max-width: 1000px; margin: 0 auto;">
186 <tr>
187 <td>
188 <!-- invoice info table -->
189 <table style="width: 100%; padding-bottom: 5px; padding: 55px 0px 0px 0px; margin-bottom: 55px; border-bottom: 1px solid rgba(216, 223, 251, 1); padding-bottom: 5px;">
190 <tr>
191 <td style="color: rgba(0, 0, 0, 1); font-weight: 300; font-size: 24px; text-align: left; line-height: 1.2em">
192 <span><?php esc_html_e( 'Transaction ID - ', 'better-payment' ); ?><?php esc_html_e( $all_data['transaction_id'], 'better-payment' ); ?></span>
193 </td>
194
195 <td style="text-align: right;">
196 <span style="font-size: 18px; font-weight: 400; color: rgba(43, 39, 72, 1);">
197 <span style="color: rgba(113, 120, 148, 1);"><?php esc_html_e( 'Date : ', 'better-payment' ); ?></span><span> <?php esc_html_e( $all_data['payment_date_only'], 'better-payment' ); ?></span>
198 </span>
199 <span>
200 <span style="font-size: 18px; font-weight: 400; color: rgba(43, 39, 72, 1); background: rgba(208, 243, 226, 1); padding: 5px 16px; border-radius: 8px; margin-left: 40px; margin-top: 10px;"><?php esc_html_e( $all_data['status'], 'better-payment' ); ?></span>
201 </span>
202 </td>
203 </tr>
204
205 </table>
206 <!-- invoice info table -->
207 <!-- invoice invelop table -->
208 <table style="width: 100%; padding-bottom: 60px;">
209 <tr>
210 <!-- from section -->
211 <?php if ( $all_data['email_content_from_section_show'] || $all_data['is_elementor_form'] ) : ?>
212 <td style="vertical-align: text-top;" class="bp-invelop">
213 <h4 style="color: rgba(110, 88, 247, 1); font-size: 24px; font-weight: 500; margin: 0 0 8px;"><?php esc_html_e( 'From', 'better-payment' ); ?></h4>
214 <h3 style="color: rgba(110, 88, 247, 1); font-size: 24px; font-weight: 500; color: rgba(43, 39, 72, 1); margin: 0 0 20px;" class="bp-name"><?php echo esc_html( $all_data['customer_name'] ); ?></h3>
215 <?php
216 $email_address = ! empty( $all_data['form_fields_info_arr']['primary_email'] ) ? $all_data['form_fields_info_arr']['primary_email'] : '';
217 $email_address = empty( $email_address ) && ! empty( $all_data['form_fields_info_arr']['email'] ) ? $all_data['form_fields_info_arr']['email'] : $email_address;
218 ?>
219 <p style="color: rgba(110, 88, 247, 1); font-size: 24px; color: rgba(43, 39, 72, 1); font-weight: 400; margin: 0 0 14px; line-height: 1.2em;" class="bp-email"><?php echo esc_html( $email_address ); ?></p>
220 <?php
221 $email_rows = array();
222
223 foreach ( $all_data['form_fields_info_arr'] as $key => $field ) {
224 //Hide few fields
225 if( $key === 'referer_page_id' || $key === 'referer_widget_id' || $key === 'source' || $key === 'el_form_fields' ||
226 $key === 'primary_first_name' || $key === 'primary_last_name' || $key === 'primary_email'
227 || $key === 'primary_payment_amount'
228 || $key === 'amount_quantity'
229 || $key === 'woo_product_id'
230 || $key === 'woo_product_ids'
231 || $key === 'fluentcart_product_id'
232 || $key === 'fluentcart_product_ids'
233 || $key === 'detailed_product_info'
234 || $key === 'email_settings'
235 ) {
236 if($key === 'referer_page_id'){
237 $referer_content_page_link = !empty($field) ? get_permalink( $field ) : $referer_content_page_link;
238 }
239
240 continue;
241 }
242
243 $key_formatted = self::better_title_case($key);
244
245 if( $key_formatted === 'Amount' ){
246 $key_formatted = __('Paid', 'better-payment');
247 }
248
249 $email_rows[] = array(
250 'key' => $key,
251 'label' => $key_formatted,
252 'value' => $field,
253 );
254 }
255
256 // A Pro payment's own fields (split payments, layout 6) are hidden or relabelled by Pro.
257 foreach ( \Better_Payment\Lite\Classes\PaymentEntitlement::email_rows( $email_rows, 'summary', $all_data['form_fields_info_arr'] ) as $email_row ) {
258 ?>
259 <p style="color: rgba(110, 88, 247, 1); font-size: 24px; color: rgba(43, 39, 72, 1); font-weight: 400; margin: 0 0 14px; line-height: 1.2em;" class="bp-content"><?php echo esc_html( $email_row['label'] ); ?>: <?php echo esc_html( $email_row['value'] ); ?></p>
260 <?php
261 }
262 ?>
263 </td>
264 <?php endif; ?>
265 <!-- / from section -->
266
267 <!-- to section -->
268 <?php if ( $all_data['email_content_to_section_show'] || $all_data['is_elementor_form'] ) : ?>
269 <td style="text-align: right; vertical-align: text-top;" class="bp-invelop">
270 <h4 style="color: rgba(110, 88, 247, 1); font-size: 24px; font-weight: 500; margin-bottom: 8px;line-height: 1.2em;"><?php esc_html_e( 'To', 'better-payment' ); ?></h4>
271 <h3 style="color: rgba(110, 88, 247, 1); font-size: 24px; font-weight: 500; color: rgba(43, 39, 72, 1); margin-bottom: 20px; line-height: 1.2em;" class="bp-name"><?php echo esc_html( $all_data['site_title']); ?></h3>
272 <p style="color: rgba(110, 88, 247, 1); font-size: 24px; color: rgba(43, 39, 72, 1); font-weight: 400; margin: 0 0 14px; line-height: 1.2em;" class="bp-email"><?php echo esc_html( $all_data['site_admin_email']); ?></p>
273 <p style="color: rgba(110, 88, 247, 1); font-size: 24px; font-weight: 500; color: rgba(43, 39, 72, 1); margin: 0 0 14px; line-height: 1.2em;" class="bp-ess__campaign"><?php esc_html_e( $all_data['form_name'], 'better-payment'); ?></p>
274
275 <div style="line-height: 18px;">
276 <span style="font-size: 22px; color: rgba(43, 39, 72, 1); font-weight: 400;"><?php esc_html_e( 'Payment Method : ', 'better-payment'); ?></span> <img style="vertical-align:middle;" src="<?php echo esc_url( $source_image_url ); ?>" alt="<?php echo esc_url( $source_image_alt ); ?>">
277 </span>
278 </td>
279 <?php endif; ?>
280 <!-- / to section -->
281 </tr>
282 </table>
283 <!-- / invoice invelop table -->
284 </td>
285 </tr>
286 </table>
287 <!-- / invoice table -->
288 </td>
289 </tr>
290
291 <tr>
292 <td>
293 <div style="max-width: 1000px; margin: 0 auto 20px; font-size: 20px">
294 <?php if($type === 'admin') : ?>
295 <?php echo $all_data['email_content_admin']; ?>
296 <?php else : ?>
297 <?php echo $all_data['email_content_customer']; ?>
298 <?php endif; ?>
299 </div>
300 </td>
301 </tr>
302
303 <?php if ( $all_data['email_content_transaction_summary_show'] || $all_data['is_elementor_form'] ) : ?>
304 <tr>
305 <td>
306 <!-- summary title -->
307 <div style="max-width: 1000px; margin: 0 auto;">
308 <h2 style="font-size: 32px; font-weight: 500; color: rgba(43, 39, 72, 1); text-align: left; padding-bottom: 20px; margin: 0; line-height: 1.2em"><?php esc_html_e( 'Transaction Summary:', 'better-payment'); ?></h2>
309 </div>
310 </td>
311 </tr>
312 <tr>
313 <td>
314 <!-- Summary table -->
315 <div style="max-width: 950px; margin: 0 auto; background: rgba(246, 248, 255, 1); border-radius: 8px; padding: 30px; margin-bottom: 50px;">
316 <table style="width: 100%; border-collapse: collapse;">
317 <tr>
318 <td>
319 <h3 style="color: rgba(113, 120, 148, 1); font-size: 20px; line-height: 2.4; font-weight: 500; border-bottom: 2px solid rgba(193, 200, 228, 1); margin: 0;" class="bp-summary__table-header"><?php esc_html_e( 'Description', 'better-payment'); ?></h3>
320 </td>
321 <td style="width: 180px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
322 <h3 style="text-align: right; color: rgba(113, 120, 148, 1); font-size: 20px; line-height: 2.4; font-weight: 500; border-bottom: 2px solid rgba(193, 200, 228, 1); margin: 0;" class="bp-summary__table-header bp-text-align__center-active__phone"><?php esc_html_e( 'Rate', 'better-payment'); ?></h3>
323 </td>
324 <td style="width: 180px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
325 <h3 style="text-align: right; color: rgba(113, 120, 148, 1); font-size: 20px; line-height: 2.4; font-weight: 500; border-bottom: 2px solid rgba(193, 200, 228, 1); margin: 0;" class="bp-summary__table-header bp-text-align__center-active__phone"><?php esc_html_e( 'Qty', 'better-payment'); ?></h3>
326 </td>
327 <td style="width: 180px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
328 <h3 style="text-align: right; color: rgba(113, 120, 148, 1); font-size: 20px; line-height: 2.4; font-weight: 500; border-bottom: 2px solid rgba(193, 200, 228, 1); margin: 0;" class="bp-summary__table-header bp-text-align__center-active__phone"><?php esc_html_e( 'Amount', 'better-payment'); ?></h3>
329 </td>
330 </tr>
331 <?php if ( empty( $all_data['woo_product_ids'] ) && empty( $all_data['fluentcart_product_ids'] ) ) : ?>
332 <tr>
333 <td style="border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;">
334 <table style="width: 100%;">
335 <tr>
336 <?php if ( ! empty( $all_data['woo_product_id'] ) ) : ?>
337 <td style="width: 50px; width: 32px; display: inline-block; margin-top: 5px;"> <span><img style="width: 100%; height: auto;" src="<?php echo esc_url( $all_data['product_image_src'] ); ?>" alt="<?php echo esc_html( $all_data['product_name']); ?>"></span></td>
338 <td> <span style="color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em;"><?php echo esc_html( $all_data['product_name']); ?></span>
339
340 <?php elseif ( ! empty( $all_data['fluentcart_product_id'] ) ) : ?>
341 <td style="width: 50px; width: 32px; display: inline-block; margin-top: 5px;"> <span><img style="width: 100%; height: auto;" src="<?php echo esc_url( $all_data['product_image_src'] ); ?>" alt="<?php echo esc_html( $all_data['product_name']); ?>"></span></td>
342 <td> <span style="color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em;"><?php echo esc_html( $all_data['product_name']); ?></span>
343
344 <?php else : ?>
345 <td> <span style="color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em;"><?php esc_html_e( $all_data['form_name'], 'better-payment' ); ?></span>
346 <?php endif; ?>
347 </td>
348 </tr>
349
350 </table>
351 </td>
352 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
353 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $all_data['amount_single'] ); ?></h3>
354 </td>
355 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 2.4;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
356 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $all_data['amount_quantity'] ); ?></h3>
357 </td>
358 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
359 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $all_data['currency_symbol'] ); ?><?php echo esc_html( $all_data['amount'] ); ?></h3>
360 </td>
361 </tr>
362 <?php endif; ?>
363
364 <?php
365 if ( ! empty( $all_data['woo_product_ids'] ) || ! empty( $all_data['fluentcart_product_ids'] ) ) :
366 if ( ! empty( $all_data['woo_product_ids'] ) && is_array( $all_data['detailed_product_info'] ) ) :
367 $woo_products = $all_data['detailed_product_info']['woo_products'] ?? [];
368
369 if ( ! empty( $woo_products ) ) :
370 foreach ( $woo_products as $product_id => $product_data ) :
371 ?>
372 <tr>
373 <td style="border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;">
374 <table style="width: 100%;">
375 <tr>
376 <td style="width: 50px; width: 32px; display: inline-block; margin-top: 5px;"> <span><img style="width: 100%; height: auto;" src="<?php echo esc_url( $product_data['image_src'] ?? '#' ); ?>" alt="<?php echo esc_html( $product_data['name'] ?? ''); ?>"></span></td>
377 <td> <span style="color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em;"><?php echo esc_html( $product_data['name'] ?? ''); ?></span></td>
378 </tr>
379 </table>
380 </td>
381 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
382 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $product_data['price'] ?? 0 ); ?></h3>
383 </td>
384 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 2.4;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
385 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $product_data['quantity'] ?? 0 ); ?></h3>
386 </td>
387 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
388 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $all_data['currency_symbol'] ); ?><?php echo esc_html( $product_data['total_price'] ?? 0 ); ?></h3>
389 </td>
390 </tr>
391 <?php
392 endforeach;
393 endif;
394
395 endif;
396
397 if ( ! empty( $all_data['fluentcart_product_ids'] ) && is_array( $all_data['detailed_product_info'] ) ) :
398 $fluentcart_products = $all_data['detailed_product_info']['fluentcart_products'] ?? [];
399
400 if ( ! empty( $fluentcart_products ) ) :
401 foreach ( $fluentcart_products as $product_id => $product_data ) :
402 ?>
403 <tr>
404 <td style="border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;">
405 <table style="width: 100%;">
406 <tr>
407 <td style="width: 50px; width: 32px; display: inline-block; margin-top: 5px;"> <span><img style="width: 100%; height: auto;" src="<?php echo esc_url( $product_data['image_src'] ?? '#' ); ?>" alt="<?php echo esc_html( $product_data['name'] ?? ''); ?>"></span></td>
408 <td> <span style="color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em;"><?php echo esc_html( $product_data['name'] ?? ''); ?></span></td>
409 </tr>
410 </table>
411 </td>
412 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
413 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $product_data['price'] ?? 0 ); ?></h3>
414 </td>
415 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 2.4;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
416 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $product_data['quantity'] ?? 0 ); ?></h3>
417 </td>
418 <td style="width: 180px; border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
419 <h3 style="text-align: right; color: rgba(43, 39, 72, 1); font-size: 18px; font-weight: 500; line-height: 1.2em; margin: 0;" class="bp-text-align__center-active__phone" style="font-weight: 500;"><?php echo esc_html( $all_data['currency_symbol'] ); ?><?php echo esc_html( $product_data['total_price'] ?? 0 ); ?></h3>
420 </td>
421 </tr>
422 <?php
423 endforeach;
424 endif;
425
426 endif;
427 endif;
428 ?>
429 </table>
430 <table style="width: 100%; padding-top: 30px;">
431 <tr>
432 <td>&nbsp;</td>
433 <td style="width: 120px;" class="bp-width__80p-active__tablet"><span style="font-size: 18px; font-weight: 500; line-height: 1.7; color: rgba(43, 39, 72, 1);"><?php esc_html_e( 'Total:', 'better-payment' ); ?></span></td>
434 <td style="text-align: right; width: 120px;" class="bp-width__80p-active__tablet"><span style="font-size: 18px; font-weight: 500; line-height: 1.7; color: rgba(43, 39, 72, 1);"><?php echo esc_html( $all_data['currency_symbol'] ); ?><?php echo esc_html( $all_data['amount'] ); ?></span></td>
435 </tr>
436 </table>
437 </div>
438 </td>
439 </tr>
440 <?php endif; ?>
441
442 <!-- footer -->
443 <?php if ( $all_data['email_content_footer_text_show'] || $all_data['is_elementor_form'] ) : ?>
444 <tr>
445 <td>
446 <div style="max-width: 1000px; margin: 0 auto; text-align: center;">
447 <?php if($type === 'admin') : // till bp user dashboard widget?>
448 <h2 style="font-size: 32px; font-weight: 400; color: rgba(43, 39, 72, 1); margin: 0 0 24px; line-height: 1.2em"><?php esc_html_e('You can also find the transaction details by visiting the link below.', 'better-payment') ?></h2>
449 <a style="cursor: pointer; display: inline-block; background: rgba(110, 88, 247, 1); color: #fff; font-size: 22px; font-weight: 500; padding: 20px 90px; border-radius: 8px; margin-bottom: 70px; text-decoration: none;" class="bp-footer__btn" href="<?php echo esc_url( $all_data['view_transaction_link'] ); ?>"><?php esc_html_e( 'View Transaction', 'better-payment'); ?></a>
450 <?php endif; ?>
451
452 <?php if ( $all_data['email_logo_url'] ) : ?>
453 <h4 style="font-size: 18px; font-weight: 500; line-height: 1.7; color: rgba(128, 136, 166, 1); margin-bottom: 10px;"><?php esc_html_e( 'Powered By', 'better-payment'); ?></h4>
454 <img style="width: 100%; height: auto; max-width: 235px;" src="<?php echo esc_url( $all_data['email_logo_url'] ); ?>" alt="logo">
455 <?php endif; ?>
456 </div>
457 </td>
458 </tr>
459 <?php endif; ?>
460 </table>
461 </div>
462 <?php endif; ?>