@foreach ($seos as $seo) @endforeach {{ $gs->title }}


{{ __('Order Details') }}

{{ __('Invoice Number') }} : {{ sprintf("%'.08d", $order->id) }}
{{ __('Order Date') }} : {{ date('d-M-Y', strtotime($order->created_at)) }}
{{ __('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 }}
@if ($order->puntoentrega != null) {{ __('Delivery Point') }} :{{ $order->puntoentrega }}

@endif {{ __('Packing Type') }} : {{ $order->packing_type }}
@endif {{ __('Payment Method') }} : {{ $order->method }} @if (!empty($order->order_note))
{{ __('Order Note') }} : {{ $order->order_note }} @endif
@if ($order->dp == 0)

{{ __('Shipping Details') }}

{{ __('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 }}
@php $subtotal = 0; $tax = 0; @endphp @foreach ($cart['items'] as $product) @php $subtotal += round($product['price'] * $order->currency_value, 2); @endphp @endforeach @if ($order->shipping_cost != 0) @endif @if ($order->packing_cost != 0) @endif @if ($order->tax != 0) @php $tax = ($subtotal / 100) * $order->tax; @endphp @endif @if ($order->coupon_discount != null) @endif
{{ __('Product') }} {{ __('Details') }} {{ __('Total') }}
@if ($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if (isset($user)) {{ $product['item']['name'] }} @else {{ $product['item']['name'] }} @endif @else {{ $product['item']['name'] }} @endif @php $prod = App\Models\Product::find($product['item']['id']); @endphp @if (isset($prod))

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

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

@if ($gs->is_invoice_photo)

@endif @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_gallery']))

{{ __('Custom Gallery Image') }}: @php $gal = App\Models\CategoryGallery::where('customizable_gallery', $product['customizable_gallery'])->first(); @endphp @if (isset($gal))

{{ __('Texture cod.:') }} {{ $gal->id }}
@endif

@endif @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, ) }}
{{ __('Shipping') }} {{ $order->currency_sign }}{{ number_format( $order->shipping_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_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, ) }}
{{ __('Coupon Discount') }} {{ $order->currency_sign }}{{ number_format( $order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}
{{ __('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, ) }}
@section('scripts') @endsection