| {{ $order->show_formatted_order_number }} | {{ $order->date_time->timezone(timezone())->format(dateFormat() . ' ' . timeFormat()) }} |
| @if ($receiptSettings->show_table_number && $order->table && $order->table->table_code) @lang('modules.settings.tableNumber'): {{ $order->table->table_code }} @endif | @if ($receiptSettings->show_total_guest && $order->number_of_pax) @lang('modules.order.noOfPax'): {{ $order->number_of_pax }} @endif |
| @lang('modules.order.qty') | @lang('modules.menu.itemName') | @lang('modules.order.price') | @lang('modules.order.amount') |
|---|---|---|---|
| {{ $item->quantity }} |
{{ $item->menuItem->item_name }}
@if (isset($item->menuItemVariation))
({{ $item->menuItemVariation->variation }}) @endif @foreach ($item->modifierOptions as $modifier) @php if ($order->order_type_id) { $modifier->setPriceContext($order->order_type_id, $order?->delivery_app_id); } @endphp • {{ $modifier->name ?? $modifier->pivot->modifier_option_name }}
(+{{ currency_format($modifier->pivot->modifier_option_price ?? $modifier->price, restaurant()->currency_id) }})
@endforeach
|
{{ currency_format($item->price, restaurant()->currency_id) }} | {{ currency_format($item->amount, restaurant()->currency_id) }} |
| @lang('modules.order.subTotal'): | {{ currency_format($order->sub_total, restaurant()->currency_id) }} |
| @lang('modules.order.discount') @if ($order->discount_type == 'percent') ({{ rtrim(rtrim($order->discount_value, '0'), '.') }}%) @endif | -{{ currency_format($order->discount_amount, restaurant()->currency_id) }} |
| @lang('loyalty::app.loyaltyDiscount') ({{ number_format($order->loyalty_points_redeemed) }} @lang('loyalty::app.points')) | -{{ currency_format($order->loyalty_discount_amount, restaurant()->currency_id) }} |
| @lang('app.stampDiscount') @if($order->items()->where('is_free_item_from_stamp', true)->exists()) (@lang('app.freeItem')) @endif | @if($order->stamp_discount_amount > 0) -{{ currency_format($order->stamp_discount_amount, restaurant()->currency_id) }} @else @lang('app.free') @endif |
| {{ $charge->charge->charge_name }} @if ($charge->charge->charge_type == 'percent') ({{ $charge->charge->charge_value }}%) @endif: | {{ currency_format($charge->charge->getAmount($discountedSubtotal), restaurant()->currency_id) }} |
| @lang('modules.order.tip'): | {{ currency_format($order->tip_amount, restaurant()->currency_id) }} |
| @lang('modules.delivery.deliveryFee'): | @if($order->delivery_fee > 0) {{ currency_format($order->delivery_fee, restaurant()->currency_id) }} @else @lang('modules.delivery.freeDelivery') @endif |
| {{ $taxItem->tax->tax_name }} ({{ $taxItem->tax->tax_percent }}%): | @php // Calculate service charges on discounted subtotal $serviceTotal = 0; if ($order->charges && $order->charges->count() > 0) { foreach ($order->charges as $chargeRelation) { $charge = $chargeRelation->charge; if ($charge) { $chargeAmount = $charge->getAmount((float)$discountedSubtotal); $serviceTotal += (float)$chargeAmount; } } } // Check if service charges should be included in tax base $restaurant = restaurant(); $includeChargesInTaxBase = false; if ($restaurant && isset($restaurant->include_charges_in_tax_base)) { $includeChargesInTaxBase = (bool)$restaurant->include_charges_in_tax_base; } // Tax base = (subtotal - discounts) + service charges (if enabled) $taxBase = $includeChargesInTaxBase ? ($discountedSubtotal + $serviceTotal) : $discountedSubtotal; $taxBase = max(0, (float)$taxBase); // Calculate tax on tax_base $taxAmount = ($taxItem->tax->tax_percent / 100) * $taxBase; @endphp {{ currency_format($taxAmount, restaurant()->currency_id) }} |
| {{ $taxName }} ({{ $taxInfo['percent'] }}%) | {{ currency_format($taxInfo['amount'], restaurant()->currency_id) }} |
| @lang('modules.order.totalTax'): | {{ currency_format($totalTax, restaurant()->currency_id) }} |
| @lang('modules.order.total'): | {{ currency_format($order->total, restaurant()->currency_id) }} |
| @lang('modules.order.paymentStatus'): | @if($order->status === 'paid') @lang('modules.order.paid') @else @lang('modules.order.unpaid') @endif |
| {{ $order->show_formatted_order_number }} | {{ $order->date_time->timezone(timezone())->format(dateFormat() . ' ' . timeFormat()) }} |
| @if ($receiptSettings->show_table_number && $order->table && $order->table->table_code) @lang('modules.settings.tableNumber'): {{ $order->table->table_code }} @endif | @if ($receiptSettings->show_total_guest && $order->number_of_pax) @lang('modules.order.noOfPax'): {{ $order->number_of_pax }} @endif |
| @if ($splitData['payer_name']) @lang('modules.order.guest'): {{ $splitData['payer_name'] }} @endif | @if($splitData['total_splits'] > 1)@lang('modules.order.split'): {{ $splitData['split_number'] }} of {{ $splitData['total_splits'] }} | @endif
| @lang('modules.order.qty') | @lang('modules.menu.itemName') | @lang('modules.order.price') | @lang('modules.order.amount') |
|---|---|---|---|
| {{ $itemData['allocated_quantity'] }} |
{{ $item->menuItem->item_name }}
@if (isset($item->menuItemVariation))
({{ $item->menuItemVariation->variation }}) @endif @foreach ($item->modifierOptions as $modifier) @php if ($order->order_type_id) { $modifier->setPriceContext($order->order_type_id, $order?->delivery_app_id); } @endphp • {{ $modifier->name ?? $modifier->pivot->modifier_option_name }}
(+{{ currency_format($modifier->pivot->modifier_option_price ?? $modifier->price, restaurant()->currency_id) }})
@endforeach
|
{{ currency_format($itemData['allocated_price'], restaurant()->currency_id) }} | {{ currency_format($itemData['allocated_amount'], restaurant()->currency_id) }} |
| @lang('modules.order.subTotal'): | {{ currency_format($splitData['allocated_amounts']['subtotal'], restaurant()->currency_id) }} |
| @lang('modules.order.discount') @if ($order->discount_type == 'percent') ({{ rtrim(rtrim($order->discount_value, '0'), '.') }}%) @endif | -{{ currency_format($splitData['allocated_amounts']['discount_amount'], restaurant()->currency_id) }} |
| @lang('loyalty::app.loyaltyDiscount') | -{{ currency_format($splitData['allocated_amounts']['loyalty_discount_amount'], restaurant()->currency_id) }} |
| @lang('app.stampDiscount') | -{{ currency_format($splitData['allocated_amounts']['stamp_discount_amount'], restaurant()->currency_id) }} |
| {{ $chargeData['charge']->charge->charge_name }} @if ($chargeData['charge']->charge->charge_type == 'percent') ({{ $chargeData['charge']->charge->charge_value }}%) @endif: | {{ currency_format($chargeData['amount'], restaurant()->currency_id) }} |
| @lang('modules.order.tip'): | {{ currency_format($splitData['allocated_amounts']['tip_amount'], restaurant()->currency_id) }} |
| @lang('modules.delivery.deliveryFee'): | @if($splitData['allocated_amounts']['delivery_fee'] > 0) {{ currency_format($splitData['allocated_amounts']['delivery_fee'], restaurant()->currency_id) }} @else @lang('modules.delivery.freeDelivery') @endif |
| {{ $taxData['name'] }} ({{ number_format($taxData['percent'], 2) }}%) | {{ currency_format($taxData['amount'], restaurant()->currency_id) }} |
| @lang('modules.order.totalTax'): | {{ currency_format($splitData['allocated_amounts']['tax_amount'], restaurant()->currency_id) }} |
| {{ $taxData['name'] }} ({{ number_format($taxData['percent'], 2) }}%) | {{ currency_format($taxData['amount'], restaurant()->currency_id) }} |
| @lang('modules.order.totalTax'): | {{ currency_format($splitData['allocated_amounts']['tax_amount'], restaurant()->currency_id) }} |
| @lang('modules.order.total'): | {{ currency_format($splitData['allocated_amounts']['total'], restaurant()->currency_id) }} |
| @lang('modules.order.paymentStatus'): | @if($order->status === 'paid') @lang('modules.order.paid') @else @lang('modules.order.unpaid') @endif |