PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.3.3
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.3.3
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 1.0.5 1.0.6 All 66 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.3.3, at includes/Admin/views/template-email-notification.php

468 lines 32.7 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:wght@400..800&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 foreach ( $all_data['form_fields_info_arr'] as $key => $field ) {
222 if ( $key === 'is_payment_split_payment' ) {
223 $is_payment_split_payment = 1;
224 }
225
226 if ( $key === 'split_payment_installment_iteration' ) {
227 $key = 'installment_iteration';
228 }
229
230 //Hide few fields
231 if( $key === 'referer_page_id' || $key === 'referer_widget_id' || $key === 'source' || $key === 'el_form_fields' ||
232 $key === 'primary_first_name' || $key === 'primary_last_name' || $key === 'primary_email'
233 || $key === 'primary_payment_amount'
234 || $key === 'amount_quantity'
235 || $key === 'is_woo_layout'
236 || $key === 'woo_product_id'
237 || $key === 'woo_product_ids'
238 || $key === 'fluentcart_product_id'
239 || $key === 'fluentcart_product_ids'
240 || $key === 'is_fluentcart_layout'
241 || $key === 'detailed_product_info'
242 || $key === 'is_payment_split_payment'
243 || $key === 'split_payment_total_amount'
244 || $key === 'split_payment_total_amount_price_id'
245 || $key === 'split_payment_installment_price_id'
246 || $key === 'recurring_price_id'
247 ) {
248 if($key === 'referer_page_id'){
249 $referer_content_page_link = !empty($field) ? get_permalink( $field ) : $referer_content_page_link;
250 }
251
252 continue;
253 }
254
255 $key_formatted = self::better_title_case($key);
256
257 if( $key_formatted === 'Amount' ){
258 $key_formatted = __('Paid', 'better-payment');
259
260 if ( ! empty( $is_payment_split_payment ) ) {
261 $key_formatted = __('Total Amount', 'better-payment');
262 }
263 }
264 ?>
265 <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( $key_formatted ); ?>: <?php echo esc_html( $field ); ?></p>
266 <?php
267 }
268 ?>
269 </td>
270 <?php endif; ?>
271 <!-- / from section -->
272
273 <!-- to section -->
274 <?php if ( $all_data['email_content_to_section_show'] || $all_data['is_elementor_form'] ) : ?>
275 <td style="text-align: right; vertical-align: text-top;" class="bp-invelop">
276 <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>
277 <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>
278 <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>
279 <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>
280
281 <div style="line-height: 18px;">
282 <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 ); ?>">
283 </span>
284 </td>
285 <?php endif; ?>
286 <!-- / to section -->
287 </tr>
288 </table>
289 <!-- / invoice invelop table -->
290 </td>
291 </tr>
292 </table>
293 <!-- / invoice table -->
294 </td>
295 </tr>
296
297 <tr>
298 <td>
299 <div style="max-width: 1000px; margin: 0 auto 20px; font-size: 20px">
300 <?php if($type === 'admin') : ?>
301 <?php echo $all_data['email_content_admin']; ?>
302 <?php else : ?>
303 <?php echo $all_data['email_content_customer']; ?>
304 <?php endif; ?>
305 </div>
306 </td>
307 </tr>
308
309 <?php if ( $all_data['email_content_transaction_summary_show'] || $all_data['is_elementor_form'] ) : ?>
310 <tr>
311 <td>
312 <!-- summary title -->
313 <div style="max-width: 1000px; margin: 0 auto;">
314 <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>
315 </div>
316 </td>
317 </tr>
318 <tr>
319 <td>
320 <!-- Summary table -->
321 <div style="max-width: 950px; margin: 0 auto; background: rgba(246, 248, 255, 1); border-radius: 8px; padding: 30px; margin-bottom: 50px;">
322 <table style="width: 100%; border-collapse: collapse;">
323 <tr>
324 <td>
325 <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>
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( 'Rate', 'better-payment'); ?></h3>
329 </td>
330 <td style="width: 180px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
331 <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>
332 </td>
333 <td style="width: 180px;" class="bp-width__100p-active__tablet bp-width__60p-active__phone">
334 <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>
335 </td>
336 </tr>
337 <?php if ( empty( $all_data['woo_product_ids'] ) && empty( $all_data['fluentcart_product_ids'] ) ) : ?>
338 <tr>
339 <td style="border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;">
340 <table style="width: 100%;">
341 <tr>
342 <?php if ( ! empty( $all_data['woo_product_id'] ) ) : ?>
343 <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>
344 <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>
345
346 <?php elseif ( ! empty( $all_data['fluentcart_product_id'] ) ) : ?>
347 <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>
348 <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>
349
350 <?php else : ?>
351 <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>
352 <?php endif; ?>
353 </td>
354 </tr>
355
356 </table>
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['amount_single'] ); ?></h3>
360 </td>
361 <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">
362 <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>
363 </td>
364 <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">
365 <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>
366 </td>
367 </tr>
368 <?php endif; ?>
369
370 <?php
371 if ( ! empty( $all_data['woo_product_ids'] ) || ! empty( $all_data['fluentcart_product_ids'] ) ) :
372 if ( ! empty( $all_data['woo_product_ids'] ) && is_array( $all_data['detailed_product_info'] ) ) :
373 $woo_products = $all_data['detailed_product_info']['woo_products'] ?? [];
374
375 if ( ! empty( $woo_products ) ) :
376 foreach ( $woo_products as $product_id => $product_data ) :
377 ?>
378 <tr>
379 <td style="border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;">
380 <table style="width: 100%;">
381 <tr>
382 <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>
383 <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>
384 </tr>
385 </table>
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( $product_data['price'] ?? 0 ); ?></h3>
389 </td>
390 <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">
391 <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>
392 </td>
393 <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">
394 <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>
395 </td>
396 </tr>
397 <?php
398 endforeach;
399 endif;
400
401 endif;
402
403 if ( ! empty( $all_data['fluentcart_product_ids'] ) && is_array( $all_data['detailed_product_info'] ) ) :
404 $fluentcart_products = $all_data['detailed_product_info']['fluentcart_products'] ?? [];
405
406 if ( ! empty( $fluentcart_products ) ) :
407 foreach ( $fluentcart_products as $product_id => $product_data ) :
408 ?>
409 <tr>
410 <td style="border-bottom: 1px solid rgba(193, 200, 228, 1); padding-bottom: 10px; padding-top: 25px;">
411 <table style="width: 100%;">
412 <tr>
413 <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>
414 <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>
415 </tr>
416 </table>
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( $product_data['price'] ?? 0 ); ?></h3>
420 </td>
421 <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">
422 <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>
423 </td>
424 <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">
425 <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>
426 </td>
427 </tr>
428 <?php
429 endforeach;
430 endif;
431
432 endif;
433 endif;
434 ?>
435 </table>
436 <table style="width: 100%; padding-top: 30px;">
437 <tr>
438 <td>&nbsp;</td>
439 <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>
440 <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>
441 </tr>
442 </table>
443 </div>
444 </td>
445 </tr>
446 <?php endif; ?>
447
448 <!-- footer -->
449 <?php if ( $all_data['email_content_footer_text_show'] || $all_data['is_elementor_form'] ) : ?>
450 <tr>
451 <td>
452 <div style="max-width: 1000px; margin: 0 auto; text-align: center;">
453 <?php if($type === 'admin') : // till bp user dashboard widget?>
454 <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>
455 <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>
456 <?php endif; ?>
457
458 <?php if ( $all_data['email_logo_url'] ) : ?>
459 <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>
460 <img style="width: 100%; height: auto; max-width: 235px;" src="<?php echo esc_url( $all_data['email_logo_url'] ); ?>" alt="logo">
461 <?php endif; ?>
462 </div>
463 </td>
464 </tr>
465 <?php endif; ?>
466 </table>
467 </div>
468 <?php endif; ?>