PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / trunk
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler vtrunk
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 / invoice / parts / subscription_items.php

subscription_items.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler trunk, at app/Views/invoice/parts/subscription_items.php

59 lines 2.4 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\Framework\Database\Orm\Collection $subscriptions
5 * @var \FluentCart\App\Models\Order $order
6 */
7 ?>
8 <?php if ($subscriptions->count() > 0): ?>
9
10 <div style="font-size:16px;font-weight:600;color:rgb(44,62,80);margin: 16px 0 0 0;line-height:24px;">
11 <?php echo esc_html__('Subscription Details', 'fluent-cart'); ?>
12 </div>
13
14 <div style="padding: 6px 0 0 10px; display: flex; flex-direction: column;gap:12px;font-size: 14px;color:#4b5563;">
15 <table role="presentation"
16 style="width: 100%;vertical-align: bottom;border-spacing: 0;padding: 0;margin-bottom: 10px;border:none;">
17 <tbody>
18
19
20 <?php foreach ($subscriptions as $subs): ?>
21 <tr>
22 <td style="width: 50%;border:none;padding: 1px 0;vertical-align: middle;">
23 <p style="margin: 0;">
24 <?php echo esc_html($subs->display_item_name); ?>
25 </p>
26
27
28 </td>
29
30 <td style="width: 50%;text-align:right;vertical-align: top;border:none;padding: 1px 0;">
31 <div>
32 <?php if (!empty($subs->payment_info)) : ?>
33 <span>
34 <?php echo $subs->payment_info; // @phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
35 </span>
36 <?php endif; ?>
37
38 <?php if (!empty($subs->next_billing_date)) : ?>
39 <p style="font-size:12px;color:rgb(75,85,99);line-height:20px;margin: 3px 0 0 0;">
40 <?php
41 printf(
42 /* translators: %s is the auto-renewal date and time */
43 esc_html__('- Auto renews on %s', 'fluent-cart'),
44 esc_html(
45 \FluentCart\App\Services\DateTime\DateFormatter::format($subs->next_billing_date, true, $order)
46 )
47 );
48 ?>
49 </p>
50 <?php endif; ?>
51 </div>
52 </td>
53 </tr>
54 <?php endforeach; ?>
55 </tbody>
56 </table>
57 </div>
58 <?php endif; ?>
59