@extends('layouts.admin') @section('content')

{{ __('Order Details') }}

{{ __('Invoice Number') }} : {{ sprintf("%'.08d", $order->id) }}
{{ __('Order Date') }} : @php setlocale(LC_ALL, \App\Helpers\Helper::strLocaleVariations($lang->locale)); @endphp {{ $order->created_at->formatLocalized('%d-%b-%Y %T') }}
{{ __('Order ID') }} : {{ $order->order_number }}
@if ($order->dp == 0) {{ __('Shipping Method') }} : @if ($order->shipping == 'pickup') {{ __('Pick Up') }} @else {{ __('Ship To Address') }} @endif
@endif @if ($order->shipping != 'pickup') {{ __('Shipping Type') }} : {{ $order->shipping_type }}
{{ __('Packing Type') }} : {{ $order->packing_type }}
@if (!empty($order->puntoentrega)) {{ __('Delivery Point') }} : {{ $order->puntoentrega }}
@endif @endif {{ __('Payment Method') }} : {{ $order->method }} @if (!empty($order->order_note))
{{ __('Order Note') }} : {{ $order->order_note }} @endif
@if ($order->dp == 0)

{{ __('Shipping Address') }}

{{ __('Customer Name') }}: {{ $order->shipping_name == null ? $order->customer_name : $order->shipping_name }}
{{ __('Address') }}: {{ $order->shipping_address == null ? $order->customer_address : $order->shipping_address }}
{{ __('Number') }}: {{ $order->shipping_address_number == null ? $order->customer_address_number . " " . $order->customer_complement : $order->shipping_address_number . " " . $order->shipping_complement }}
{{ __('District') }}: {{ $order->shipping_district == null ? $order->customer_district : $order->shipping_district }}
{{ __('City') }}: {{ $order->shipping_city == null ? $order->customer_city : $order->shipping_city }}
{{ __('State') }}: {{ $order->shipping_state == null ? $order->customer_state : $order->shipping_state }}
{{ __('Country') }}: {{ $order->shipping_country == null ? $order->customer_country : $order->shipping_country }}
{{ __('Postal Code') }}: {{ $order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip }}
@endif

{{ __('Billing Details') }}

{{ __('Customer Name') }}: {{ $order->customer_name }}
{{ __('Customer Email') }}: {{ $order->customer_email }}
{{ __('Customer') . ' ' . $customer_doc_str }}: {{ $order->customer_document }}
{{ __('Customer Phone') }}: {{ $order->customer_phone }}
{{ __('Address') }}: {{ $order->customer_address }}
{{ __('Number') }}: {{ $order->customer_address_number }}
{{ __('Customer complement') }}: {{ $order->customer_complement }}
{{ __('District') }}: {{ $order->customer_district }}
{{ __('City') }}: {{ $order->customer_city }}
{{ __('State') }}: {{ $order->customer_state }}
{{ __('Country') }}: {{ $order->customer_country }}
{{ __('Postal Code') }}: {{ $order->customer_zip }}
@if ($gs->is_invoice_photo) @endif @php $subtotal = 0; $subtotal_original = 0; $tax = 0; $tax_original = 0; @endphp @foreach ($cart['items'] as $product) @if ($gs->is_invoice_photo) @endif @php $subtotal += $product['price'] * $order->currency_value; $subtotal_original += $product['price']; @endphp @endforeach @if ($gs->is_invoice_photo) @endif @if ($order->shipping_cost != 0) @if ($gs->is_invoice_photo) @endif @endif @if ($order->packing_cost != 0) @if ($gs->is_invoice_photo) @endif @endif @if ($order->tax != 0) @if ($gs->is_invoice_photo) @endif @php $tax_original = ($subtotal_original / 100) * $order->tax; $tax = $order->currency_value != 1 ? floor($tax_original * $order->currency_value) : $tax_original; @endphp @endif @if ($order->coupon_discount != null) @if ($gs->is_invoice_photo) @endif @endif @if ($gs->is_invoice_photo) @endif
{{ __('Product') }}{{ __('Photo') }}{{ __('Details') }} {{ __('Total') }}

{{ $product['item']['name'] }}

@php $prod = App\Models\Product::find($product['item']['id']); @endphp @if (isset($prod))

{{ __('Product SKU') }} - {{ $prod->sku }}

{{ __('Reference Code') }} - {{ $prod->ref_code }}

@endif
@if ($product['size'])

{{ __('Size') }}: {{ str_replace('-', ' ', $product['size']) }}

@endif @if ($product['color'])

{{ __('color') }} :

@endif

{{ __('Price') }} : {{ $order->currency_sign }}{{ number_format( $product['item']['price'] * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}

{{ $first_curr->sign . ' ' . __('Price') }} : {{ $first_curr->sign }}{{ number_format( $product['item']['price'], $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator, ) }}

{{ __('Qty') }} : {{ $product['qty'] }} {{ $product['item']['measure'] }}

@if (!empty($product['customizable_name']))

{{ __('Custom Name') }}: {{ $product['customizable_name'] }}

@endif @if (!empty($product['customizable_number']))

{{ __('Custom Number') }}: {{ $product['customizable_number'] }}

@endif @if (!empty($product['keys'])) @foreach (array_combine(explode(',', $product['keys']), explode('~', $product['values'])) as $key => $value)

{{ App\Models\Attribute::where('input_name', $key)->first()->name }} : {{ $value }}

@endforeach @endif
{{ $order->currency_sign }}{{ number_format( $product['price'] * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}
{{ $first_curr->sign }}{{ number_format( $product['price'], $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator, ) }}
{{ __('Subtotal') }} {{ $order->currency_sign }}{{ number_format($subtotal, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($subtotal_original, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }}
{{ __('Shipping') }} {{ $order->currency_sign }}{{ number_format($order->shipping_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($order->shipping_cost, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }}
{{ __('Packaging') }} {{ $order->currency_sign }}{{ number_format( $order->packing_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}
{{ __('TAX') }} {{ $order->currency_sign }}{{ number_format($tax, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($tax_original, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }}
{{ __('Coupon Discount') }}({{ $order->currency_sign }}) {{ $order->currency_sign }}{{ number_format( $order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}
{{ __('Total') }}
{{ $first_curr->sign . ' ' . __('Total') }}
{{ $order->currency_sign }}{{ number_format($order->pay_amount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($order->pay_amount, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }}
@endsection