order_items ? $order->order_items->toArray() : []; $orderItems = array_filter($allOrderItems, function ($item) { return !in_array($item['payment_type'] ?? '', ['signup_fee', 'fee']); }); $feeItems = array_filter($allOrderItems, function ($item) { return ($item['payment_type'] ?? '') === 'fee'; }); $transaction = $order->getLatestTransaction(); $isRefund = $is_refund ?? false; ?>

1): ?> x

-

subtotal != $order->total_amount): ?> shipping_total > 0): ?> shipping_tax > 0): ?> manual_discount_total + $order->coupon_discount_total > 0): ?> tax_total > 0): ?> total_refund > 0 && $isRefund): ?> total_refund > 0 && !$isRefund): ?>

subtotal)); ?>

shipping_total)); ?>

tax_behavior == 2 ? __('(Included)', 'fluent-cart') : __('(Excluded)', 'fluent-cart')); ?>

shipping_tax)); ?>

- manual_discount_total + $order->coupon_discount_total)); ?>

tax_behavior == 2 ? __('(Included)', 'fluent-cart') : __('(Excluded)', 'fluent-cart')); ?>

tax_total)); ?>

- total_refund)); ?>

total_amount - $order->total_refund), null, false, true, true)); ?>

- total_refund)); ?>

getPaymentMethodText() : ''); ?>

orderTaxRates->first(); $taxtotal = $order->tax_total + $order->shipping_tax; if(Arr::get($orderTaxRates->meta ?? [], 'vat_reverse.valid') && !$taxtotal): ?>