direction == 1) dir="rtl" @endif> {{-- required meta tags --}} {{-- title --}} {{ 'Product Invoice | ' . config('app.name') }} {{-- fav icon --}} {{-- styles --}} @php $mb = '35px'; $width = '50%'; $ml = '18px'; $pl = '15px'; $pr = '15px'; $float = 'right'; $floatL = 'left'; @endphp

{{ __('PRODUCT ORDER INVOICE') }}

@php $position = $orderInfo->currency_text_position; $currency = $orderInfo->currency_text; @endphp
{{-- order details start --}}

{{ __('Order Details') }}

{{ __('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) }}

{{-- order details end --}} {{-- billing details start --}}

{{ __('Billing Details') }}

{{ __('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 }}

{{-- billing details end --}}
{{-- purchased items start --}}

{{ __('Ordered Products') }}

@foreach ($productList as $product) @endforeach
{{ __('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 : '' }}
{{-- purchased items end --}}