@lang('modules.order.orderNumber') #{{ $order->order_number }}
{{ $order->date_time->timezone(timezone())->translatedFormat('d M Y H:i') }}
@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 ($receiptSettings->show_waiter && $order->waiter && $order->waiter->name)
@lang('modules.order.waiter') :{{ $order->waiter->name }}
@endif
@if ($receiptSettings->show_customer_name && $order->customer && $order->customer->name)
@lang('modules.customer.customer') :{{ $order->customer->name }}
@endif
@if ($receiptSettings->show_customer_address && $order->customer && $order->customer->delivery_address)
@lang('modules.customer.customerAddress') :{{ $order->customer->delivery_address }}
@endif
@lang('modules.order.subTotal'):
{{ currency_format($order->sub_total) }}
@if (!is_null($order->discount_amount))
@lang('modules.order.discount') @if ($order->discount_type == 'percent')
({{ rtrim(rtrim($order->discount_value, '0'), '.') }}%)
@endif
-{{ currency_format($order->discount_amount) }}
@endif
@foreach ($order->charges as $item)
{{ $item->charge->charge_name }}
@if ($item->charge->charge_type == 'percent')
({{ $item->charge->charge_value }}%)
@endif
@if ($item->charge->charge_type == 'percent')
{{ currency_format(($item->charge->charge_value / 100) * ($order->sub_total - ($order->discount_amount ?? 0))) }}
@else
{{ currency_format($item->charge->charge_value) }}
@endif
@endforeach
@foreach ($order->taxes as $item)
{{ $item->tax->tax_name }} ({{ $item->tax->tax_percent }}%):
{{ currency_format(($item->tax->tax_percent / 100) * ($order->sub_total - ($order->discount_amount ?? 0))) }}
@endforeach
@if ($payment)
@lang('modules.order.balanceReturn'):
{{ currency_format($payment->balance) }}
@endif
@lang('modules.order.total'):
{{ currency_format($order->total) }}