direction == 1) dir="rtl" @endif> {{-- required meta tags --}} {{-- title --}}
{{ __('Order No') . ': ' }}{{ '#' . $orderInfo->order_number }}
{{ __('Order Date') . ': ' }}{{ date_format($orderInfo->created_at, 'M d, Y') }}
{{ __('Price') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($orderInfo->total, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Discount') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($orderInfo->discount, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
@php $total = floatval($orderInfo->total); $discount = floatval($orderInfo->discount); $subtotal = $total - $discount; @endphp {{ __('Subtotal') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($subtotal, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Shipping Cost') . ': ' }} @if (is_null($orderInfo->shipping_cost)) - @else {{ $position == 'left' ? $currency . ' ' : '' }}{{ $orderInfo->shipping_cost }}{{ $position == 'right' ? ' ' . $currency : '' }} @endif
{{ __('Tax') . ' (' . $taxData->product_tax_amount . '%): ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($orderInfo->tax, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Grand Total') . ': ' }}{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($orderInfo->grand_total, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Payment Method') . ': ' }}{{ $orderInfo->payment_method }}
{{ __('Payment Status') . ': ' }}{{ ucfirst($orderInfo->payment_status) }}
{{ __('Name') . ': ' }}{{ $orderInfo->billing_name }}
{{ __('Email') . ': ' }}{{ $orderInfo->billing_email }}
{{ __('Contact Number') . ': ' }}{{ $orderInfo->billing_phone }}
{{ __('Address') . ': ' }}{{ $orderInfo->billing_address }}
{{ __('City') . ': ' }}{{ $orderInfo->billing_city }}
{{ __('State') . ': ' }}{{ is_null($orderInfo->billing_state) ? '-' : $orderInfo->billing_state }}
{{ __('Country') . ': ' }}{{ $orderInfo->billing_country }}
{{ __('Name') }} | {{ __('Unit Price') }} | {{ __('Quantity') }} | {{ __('Total Price') }} |
---|---|---|---|
{{ $product['title'] }} | @php $price = $product['price']; $quantity = intval($product['quantity']); $unitPrice = $price / $quantity; @endphp {{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($unitPrice, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }} | {{ $product['quantity'] }} | @php $totalPrice = $product['price']; @endphp {{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($totalPrice, 2) }}{{ $position == 'right' ? ' ' . $currency : '' }} |