@extends('layouts.admin') @section('content')
@include('includes.admin.form-both') @include('includes.form-success')

{{ __('Order Details') }}

@if ($order->shipping_cost != 0) @endif @if ($order->packing_cost != 0) @endif @if ($order->method != 'Cash On Delivery') @if ($order->method == 'Stripe') @endif @endif @if (!empty($order->order_note)) @endif @if (!empty($order->internal_note)) @endif
{{ __('Order ID') }} : {{ $order->order_number }}
{{ __('Total Product') }} : {{ $order->totalQty }}
{{ $order->shipping_type }} : {{ $order->currency_sign }}{{ number_format( $order->shipping_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}
{{ $order->packing_type }} : {{ $order->currency_sign }}{{ number_format( $order->packing_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}
{{ __('Total Cost') }} : {{ $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 . ' ' . __('Total:') }} : {{ $first_curr->sign }}{{ number_format( $order->pay_amount, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator, ) }}
{{ __('Ordered Date') }} : @php setlocale(LC_ALL, \App\Helpers\Helper::strLocaleVariations($lang->locale)); @endphp {{ $order->created_at->formatLocalized('%d-%b-%Y %T') }}
{{ __('Payment Method') }} : {{ $order->method }}
{{ $order->method }} {{ __('Charge ID') }} : {{ $order->charge_id }}
{{ $order->method }} {{ __('Transaction ID') }} : {{ $order->txnid }}
{{ __('Payment Status') }} : {!! $order->payment_status == 'Pending' ? "" . __('Unpaid') . '' : "" . __('Paid') . '' !!}
{{ __('Order Note') }} : {{ $order->order_note }}
{{ __('Note') }} : {{ $order->internal_note }}

{{ __('Billing Details') }}

@if ($order->tax != 0) @endif @if ($order->coupon_code != null) @endif @if ($order->coupon_discount != null) @if ($admstore->currency_format == 0) @else @endif @endif @if ($order->affilate_user != null) @endif @if ($order->affilate_charge != null) @if ($admstore->currency_format == 0) @else @endif @endif
{{ __('Name') }} : {{ $order->customer_name }}
{{ __('Email') }} : {{ $order->customer_email }}
{{ $customer_doc_str }} : {{ $order->customer_document }}
{{ __('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 }}
{{ __('Tax') }} : {{ $order->tax . '%' }}
{{ __('Coupon Code') }} : {{ $order->coupon_code }}
{{ __('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, ) }} {{ number_format( $order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }}{{ $order->currency_sign }}
{{ __('Affilate User') }} : {{ $order->affilate_user }}
{{ __('Affilate Charge') }} : {{ $order->currency_sign }}{{ $order->affilate_charge }} {{ $order->affilate_charge }}{{ $order->currency_sign }}
@if ($order->dp == 0)

{{ __('Shipping Details') }}

@if ($order->shipping == 'pickup') @else @if ($order->puntoentrega != null) @endif @endif
{{ __('Packing Type') }}: : {{ $order->packing_type }}
{{ __('Pickup Location') }}: : {{ $order->pickup_location }}
{{ __('Shipping Type') }}: : {{ $order->shipping_type }}
{{ __('Delivery Point') }}: : {{ $order->puntoentrega }}
{{ __('Name') }}: : {{ $order->shipping_name == null ? $order->customer_name : $order->shipping_name }}
{{ __('Phone') }}: : {{ $order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone }}
{{ __('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 }}
{{ __('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 @foreach ($cart['items'] as $key => $product) @if (!empty($product['customizable_name']) || !empty($product['customizable_number']) || !empty($product['customizable_logo']) || !empty($product['customizable_gallery']))

{{ __('Custom Products') }}

@php $prod = App\Models\Product::find($product['item']['id']); @endphp @if (isset($prod)) @endif @if (env('ENABLE_CUSTOM_PRODUCT') || env('ENABLE_CUSTOM_PRODUCT_NUMBER')) @if (!empty($product['customizable_name'])) @endif @endif @if (env('ENABLE_CUSTOM_PRODUCT_NUMBER')) @if (!empty($product['customizable_number'])) @endif @endif @if (env('ENABLE_CUSTOM_PRODUCT')) @if (!empty($product['customizable_logo'])) @endif @if (!empty($product['customizable_gallery'])) @php $gal = App\Models\CategoryGallery::where('customizable_gallery', $product['customizable_gallery'])->first(); @endphp @endif @endif
{{ __('Product Title') }}: : {{ mb_strlen($product['item']['name'], 'utf-8') > 30 ? mb_substr($product['item']['name'], 0, 30, 'utf-8') . '...' : $product['item']['name'] }}
{{ __('Product SKU') }}: :{{ $prod->sku }}
{{ __('Custom Name') }}: : {{ $product['customizable_name'] }}
{{ __('Custom Number') }}: : {{ $product['customizable_number'] }}
{{ __('Custom Logo') }}: :
{{ __('Custom Gallery Image') }}: :
@if (isset($gal)) {{ $gal->id }} @endif
@endif @endforeach

{{ __('Products Ordered') }}

@foreach ($cart['items'] as $key => $product) @endforeach
{{ __('Product ID#') }} {{ __('Product Title') }} {{ __('Details') }} {{ __('Total Price') }}
{{ $product['item']['id'] }} {{ mb_strlen($product['item']['name'], 'utf-8') > 30 ? mb_substr($product['item']['name'], 0, 30, 'utf-8') . '...' : $product['item']['name'] }} @if ($product['license'] != '') {{ __('View License') }} @endif @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 @if (isset($product['material'])) @if (!empty($product['material']))

{{ __('Material') }}: {{ str_replace('-', ' ', $product['material']) }}

@endif @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['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, ) }}
@if ($admstore->is_melhorenvio && config('features.melhorenvio_shipping'))

{{ __('Melhor Envio Requests') }}

@foreach ($order->melhorenvio_requests as $request) @endforeach
{{ __('Protocol') }} {{ __('Service') }} {{ __('Price') }} {{ __('Tracking') }} {{ __('Status') }} {{ __('Options') }}
{{ $request->protocol }} {{ $request->service->company->name }}
{{ $request->service->name }}
R${{ number_format($request->price, 2, ',', '.') }} {{ $request->tracking }} @if ($request->status == 'pending') {{ __('Pending') }} @elseif($request->status == 'released') {{ __('Released') }} @elseif($request->status == 'posted') {{ __('Posted') }} @elseif($request->status == 'delivered') {{ __('Delivered') }} @elseif($request->status == 'canceled') {{ __('Canceled') }} @elseif($request->status == 'undelivered') {{ __('Undelivered') }} @endif
@php $disable = !empty($request->posted_at) || !empty($request->canceled_at) || !empty($request->expired_at) || !empty($request->delivered_at); @endphp
@endif
@if ($order->method != 'Simplified') @endif
{{-- LICENSE MODAL --}} {{-- LICENSE MODAL ENDS --}} {{-- MESSAGE MODAL --}}
{{-- MESSAGE MODAL ENDS --}} {{-- ORDER MODAL --}} {{-- ORDER MODAL ENDS --}} @endsection @section('scripts') @if ($admstore->is_melhorenvio && config('features.melhorenvio_shipping')) @endif @endsection