PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.3.21
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.3.21
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / app / Views / emails / order / reminder / overdue / admin.php

admin.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.3.21, at app/Views/emails/order/reminder/overdue/admin.php

66 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if (!defined('ABSPATH')) exit; ?>
2 <?php
3 /**
4 * @var \FluentCart\App\Models\Order $order
5 * @var array $reminder
6 */
7
8 $reminder = (isset($reminder) && is_array($reminder)) ? $reminder : [];
9 $dueAt = \FluentCart\Framework\Support\Arr::get($reminder, 'due_at', '');
10 $dueDate = $dueAt ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($dueAt)->format('M d, Y h:i A') : '';
11 $dueAmount = \FluentCart\Framework\Support\Arr::get($reminder, 'due_amount', 0);
12 if (!$dueAmount) {
13 $dueAmount = max(((int)$order->total_amount - (int)$order->total_paid), 0);
14 }
15 $orderRef = \FluentCart\Framework\Support\Arr::get($reminder, 'order_ref', '');
16
17 if (empty($orderRef)) {
18 $orderRef = !empty($order->invoice_no) ? $order->invoice_no : '#' . $order->id;
19 }
20 ?>
21
22 <div class="space_bottom_30">
23 <p>
24 <?php
25 printf(
26 /* translators: %s is customer full name */
27 esc_html__('A payment reminder was sent to %s.', 'fluent-cart'),
28 esc_html($order->customer->full_name)
29 );
30 ?>
31 </p>
32 <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px;margin:12px 0 0;">
33 <tbody>
34 <tr>
35 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Order ID', 'fluent-cart'); ?></td>
36 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;">#<?php echo esc_html($order->id); ?></td>
37 </tr>
38 <tr>
39 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Order Reference', 'fluent-cart'); ?></td>
40 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($orderRef); ?></td>
41 </tr>
42 <tr>
43 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Customer Email', 'fluent-cart'); ?></td>
44 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($order->customer->email); ?></td>
45 </tr>
46 <tr>
47 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Outstanding Amount', 'fluent-cart'); ?></td>
48 <td style="font-size:14px;color:#111827;font-weight:700;padding:0 0 6px;text-align:right;"><?php echo esc_html(\FluentCart\Api\CurrencySettings::getFormattedPrice($dueAmount, null, false, true, true)); ?></td>
49 </tr>
50 <?php if ($dueDate): ?>
51 <tr>
52 <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Due Date', 'fluent-cart'); ?></td>
53 <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($dueDate); ?></td>
54 </tr>
55 <?php endif; ?>
56 </tbody>
57 </table>
58 </div>
59
60 <?php
61 \FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [
62 'content' => __('Review the order and follow up with the customer if payment is not received.', 'fluent-cart'),
63 'link' => $order->getViewUrl('admin'),
64 'button_text' => __('Open Order', 'fluent-cart'),
65 ]);
66