# fluent-booking/2.5.0/app/Views/public/receipt/order-items-table.php

Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution, version 2.5.0. 82 lines.

- Page: https://pluginprobe.com/plugins/fluent-booking/2.5.0/code/app/Views/public/receipt/order-items-table.php
- Raw: https://pluginprobe.com/plugins/fluent-booking/2.5.0/raw/app/Views/public/receipt/order-items-table.php
- Modified: 2026-08-28T13:36:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-booking/2.5.0/code/app/Views/public/receipt/order-items-table.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || exit;

/**
 * @var object $order
 * @var array  $currency_settings
 * @var bool   $hasSubscription
 */

if (!$order->items) {
    return '';
}

?>
    <table class="table fluent_booking_order_items_table fluent_booking_table table_bordered">
        <thead>
        <th><?php esc_html_e('Item', 'fluent-booking'); ?></th>
        <th><?php esc_html_e('Quantity', 'fluent-booking'); ?></th>
        <th><?php esc_html_e('Price', 'fluent-booking'); ?></th>
        <th><?php esc_html_e('Line Total', 'fluent-booking'); ?></th>
        </thead>
        <tbody>
        <?php $fluentBookingSubTotal = 0; ?>
        <?php foreach ($order->items->toArray() as $fluentBookingOrderItem) {
           if (is_array($fluentBookingOrderItem)) {
               if (!empty($fluentBookingOrderItem['item_total'])) :?>
                   <tr>
                       <td><?php echo esc_html($fluentBookingOrderItem['item_name']); ?></td>
                       <td><?php echo esc_html($fluentBookingOrderItem['quantity']); ?></td>
                       <td><?php echo esc_attr(fluentbookingFormattedAmount($fluentBookingOrderItem['item_price'], $currency_settings)); ?></td>
                       <td><?php echo esc_attr(fluentbookingFormattedAmount($fluentBookingOrderItem['item_total'], $currency_settings)); ?></td>
                   </tr>
                   <?php
                   $fluentBookingSubTotal += $fluentBookingOrderItem['item_total'];
               endif;
           } else {
               if (isset($fluentBookingOrderItem->item_total) && $fluentBookingOrderItem->item_total) :?>
                   <tr>
                       <td><?php echo esc_html($fluentBookingOrderItem->item_name); ?></td>
                       <td><?php echo esc_html($fluentBookingOrderItem->quantity); ?></td>
                       <td><?php echo esc_html(fluentbookingFormattedAmount($fluentBookingOrderItem->item_price, $currency_settings)); ?></td>
                       <td><?php echo esc_html(fluentbookingFormattedAmount($fluentBookingOrderItem->item_total, $currency_settings)); ?></td>
                   </tr>
                   <?php
                   $fluentBookingSubTotal += $fluentBookingOrderItem->item_total;
               endif;
           }

        };
        ?>
        </tbody>
        <tfoot>
        <?php $fluentBookingDiscountTotal = 0;
        if (isset($order->discounts) && count($order->discounts)) : ?>
            <tr class="fluent_booking_total_row">
                <th style="text-align: right" colspan="3"><?php esc_html_e('Sub-Total', 'fluent-booking'); ?></th>
                <td><?php echo esc_html(fluentbookingFormattedAmount($fluentBookingSubTotal, $currency_settings)); ?></td>
            </tr>
            <?php
            foreach ($order->discounts as $fluentBookingDiscount) :
                $fluentBookingDiscountTotal += $fluentBookingDiscount->item_total;
                ?>
                <tr class="fluent_booking_discount_row">
                    <?php /* translators: %s: Discount name */ ?>
                    <th style="text-align: right" colspan="3"><?php printf(esc_html__('Discounts(%s)', 'fluent-booking'), esc_html($fluentBookingDiscount->item_name)); ?></th>
                    <td><?php echo '-' . esc_html(fluentbookingFormattedAmount($fluentBookingDiscount->item_total, $currency_settings)); ?></td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
        <tr class="fluent_booking_total_payment_row">
            <th style="text-align: right" colspan="3"><?php esc_html_e('Total', 'fluent-booking'); ?></th>
            <td>
                <?php if (isset($hasSubscription) && $hasSubscription) : ?> 
                    <?php echo esc_attr(fluentbookingFormattedAmount($order->total_amount, $currency_settings)); ?>
                <?php else:  ?> 
                    <?php echo esc_attr(fluentbookingFormattedAmount($order->total_amount, $currency_settings)); ?>
                <?php endif; ?>
            </td>
        </tr>
        </tfoot>
    </table>

```
