| {{ $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 |
| {{ $item->charge->charge_name }} @if ($item->charge->charge_type == 'percent') ({{ $item->charge->charge_value }}%) @endif: | {{ currency_format($item->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 |
| {{ $item->tax->tax_name }} ({{ $item->tax->tax_percent }}%): | @php // Calculate tax_base based on Tax Calculation Base setting // 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 = ($item->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.balanceReturn'): | {{ currency_format($payment->balance, 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 |