{{ __('Invoice') }}

{{ __('Logo') }}

@php $bill = json_decode($order->billing_address, true); @endphp

{{ __('Order Number:') }} {{ $order->Order_Number }}
{{ __('Name:') }} {{ $bill['name'] ?? null }}
{{ __('Email:') }} {{ $bill['email'] ?? null }}
{{ __('Date:') }} @php $userTimezone = 'Asia/Amman'; echo $order->created_at->setTimezone($userTimezone); @endphp
{{ __('Payment Method: ') }} {{ $order->Payment_Method }}
{{ __('TXN: ') }} {{ $order->txn }}

{{ __('Billing Address:') }}
{{ $bill['name'] ?? null }}
{{ $bill['email'] ?? null }}
{{ $bill['street'] ?? null }}
{{ $bill['state'] ?? null }}
{{ $bill['country']. __(',') ?? null . __(',') }} {{ $bill['zipcode'] ?? null }}
{{ $bill['billing_PhoneNumber_country'] ?? null }} {{ $bill['billing_PhoneNumber'] ?? null }}

@php $ship = json_decode($order->shipping_address, true); @endphp

{{ __('Shipping Address:') }}
{{ $ship['name'] ?? null }}
{{ $ship['email'] ?? null }}
{{ $ship['street'] ?? null }}
{{ $ship['state'] ?? null }}
{{ $ship['country'] . __(',') ?? null . __(',') }} {{ $ship['zipcode'] ?? null }}
{{ $ship['shipping_PhoneNumber_country'] ?? null }} {{ $ship['shipping_PhoneNumber'] ?? null }}

{{ __('Products') }}
{{-- --}} {{-- --}} @foreach ($order->order_details as $od) {{-- --}} {{-- --}} @endforeach {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @if (!is_null($order->Coupon_Amount) && $order->Coupon_Amount != 0.00) {{-- --}} @endif @if (!is_null($order->user_discount) && $order->user_discount != 0.00) {{-- --}} @endif {{-- --}}
{{ __('Name') }} {{ __('Item ID') }} {{ __('Quantity') }}{{ __('Size') }}{{ __('Color') }}{{ __('Price') }} {{ __('Total') }}
{{ $od->product->en_Product_Name }} {{$od->product->item_id}} {{ $od->Quantity }}{{ is_null($od->Size) ? __('N/A') : $od->Size }}{{ is_null($od->Color) ? __('N/A') : $od->Color }}{{ $od->Price }} {{ $od->Total_Price }}
{{ __('Subtotal') }} {{ $order->Sub_Total }}
{{ __('Shipping Charge') }} {{ $order->Delivery_Charge }}
{{ __('Tax') }}{{ $order->Tax }}
{{ __('Coupon Discount (-)') }} {{ $order->Coupon_Amount }}%
{{ __('User Discount (-)') }} {{ $order->user_discount }}%
{{ __('Grand Total') }} {{ $order->Grand_Total }}
{{ __('*All the amount is in JD currency.') }} {{ __('*Prices include tax.') }}
{{ __('Print') }}