| 1 |
<?php defined( 'ABSPATH' ) || exit; ?> |
| 2 |
|
| 3 |
<div class="fluent_booking_payment_info"> |
| 4 |
<table width="100%"> |
| 5 |
<tbody> |
| 6 |
<tr> |
| 7 |
<td> |
| 8 |
<div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_order_id"> |
| 9 |
<?php if ($order->items) : ?> |
| 10 |
<div class="fluent_booking_item_heading"><?php esc_html_e('Order ID:', 'fluent-booking'); ?></div> |
| 11 |
<?php else : ?> |
| 12 |
<div class="fluent_booking_item_heading"><?php esc_html_e('Submission ID:', 'fluent-booking'); ?></div> |
| 13 |
<?php endif; ?> |
| 14 |
<div class="fluent_booking_item_value">#<?php echo esc_attr($order->id); ?></div> |
| 15 |
</div> |
| 16 |
</td> |
| 17 |
<td> |
| 18 |
<div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_date"> |
| 19 |
<div class="fluent_booking_item_heading"><?php esc_html_e('Date:', 'fluent-booking'); ?></div> |
| 20 |
<div class="fluent_booking_item_value"><?php echo esc_attr(gmdate(get_option('date_format'), strtotime($order->created_at))); ?></div> |
| 21 |
</div> |
| 22 |
</td> |
| 23 |
<?php if ($order->total_amount) : ?> |
| 24 |
<?php |
| 25 |
$currencySetting['currency_sign'] = \FluentBooking\App\Services\CurrenciesHelper::getCurrencySign($order->currency); |
| 26 |
?> |
| 27 |
<td> |
| 28 |
<div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_total"> |
| 29 |
<div class="fluent_booking_item_heading"><?php esc_html_e('Total:', 'fluent-booking'); ?></div> |
| 30 |
<div class="fluent_booking_item_value"><?php echo ($order->total_amount > 0) ? esc_attr(fluentbookingFormattedAmount($order->total_amount, $currencySetting)) : 'pending'; ?></div> |
| 31 |
</div> |
| 32 |
</td> |
| 33 |
<?php endif; ?> |
| 34 |
<?php if ($order->payment_method) : ?> |
| 35 |
<td> |
| 36 |
<div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_payment_method"> |
| 37 |
<div class="fluent_booking_item_heading"><?php esc_html_e('Payment Method:', 'fluent-booking'); ?></div> |
| 38 |
<div class="fluent_booking_item_value"><?php echo esc_attr(ucfirst($order->payment_method)); ?></div> |
| 39 |
</div> |
| 40 |
</td> |
| 41 |
<?php endif; ?> |
| 42 |
<?php if ($order->status && $order->items) : ?> |
| 43 |
<td> |
| 44 |
<div class="fluent_booking_payment_info_item fluent_booking_payment_info_item_payment_status"> |
| 45 |
<div class="fluent_booking_item_heading"><?php esc_html_e('Payment Status:', 'fluent-booking'); ?></div> |
| 46 |
<div class="fluent_booking_item_value"><?php echo esc_attr(ucfirst($order->status)); ?></div> |
| 47 |
</div> |
| 48 |
</td> |
| 49 |
<?php endif; ?> |
| 50 |
</tr> |
| 51 |
</tbody> |
| 52 |
</table> |
| 53 |
</div> |
| 54 |
|
| 55 |
|
| 56 |
|