@extends('front.themes.' . env('THEME', 'theme-01') . '.layout') @section('content')
@if(!empty($tempcart))

{{ __("THANK YOU FOR YOUR ORDER.") }}

@php $linkSimplifiedCheckout = "*| " . __('New Order - Simplified Checkout') . " |*" . PHP_EOL.PHP_EOL; if($order->customer_name) { $linkSimplifiedCheckout .= "_*" . __("Name") . ": " . $order->customer_name . "*_" . PHP_EOL; } if($order->customer_phone) { $linkSimplifiedCheckout .= "_*" . __("Phone") . ": " . $order->customer_phone . "*_" . PHP_EOL; } $linkSimplifiedCheckout .= PHP_EOL . "*---------------------------------*".PHP_EOL.PHP_EOL; foreach($tempcart->items as $product) { $linkSimplifiedCheckout .= "*" . __("Product") . "*: " . $product['item']['name'].PHP_EOL; $linkSimplifiedCheckout .= "*" . __("Quantity") . "*: " . $product['qty'].PHP_EOL; $linkSimplifiedCheckout .= "*" . __("Price") . "*: " . $order->currency_sign . number_format($product['item']['price'] * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator).PHP_EOL; $linkSimplifiedCheckout .= (route('front.product', ['slug' => $product['item']['slug']])).PHP_EOL.PHP_EOL; $linkSimplifiedCheckout .= "*---------------------------------*".PHP_EOL.PHP_EOL; } if ($order->tax) { $linkSimplifiedCheckout .= "*" . __("Tax") . "*: " . $order->tax . "%" .PHP_EOL; } if ($order->coupon_code) { $linkSimplifiedCheckout .= "*" . __("Discount") . "*: " . $order->currency_sign . number_format($order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator).PHP_EOL; } $linkSimplifiedCheckout .= "*" . __("Order Amount") . "*: " . $order->currency_sign . number_format($order->pay_amount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator).PHP_EOL.PHP_EOL; $linkSimplifiedCheckout .= "_" . __("Order Number") . " - " . $order->order_number . "_".PHP_EOL; $linkSimplifiedCheckout .= "_" . __("Date") . " - " . Carbon\Carbon::now()->toDateTimeString() . "_"; $link = "https://web.whatsapp.com/send?1=pt_BR&phone=" . $gs->simplified_checkout_number . "&text=" . urlencode($linkSimplifiedCheckout); @endphp

{{ __("If the conversation page does not open automatically") . " " }}

{{ __("Click Here") }}
{{ __("Get Back To Our Homepage") }}

{{ __("THANK YOU FOR YOUR ORDER.") }}

@php $linkSimplifiedCheckout = "*| " . __('New Order - Simplified Checkout') . " |*" . PHP_EOL.PHP_EOL; if($order->customer_name) { $linkSimplifiedCheckout .= "_*" . __("Name") . ": " . $order->customer_name . "*_" . PHP_EOL; } if($order->customer_phone) { $linkSimplifiedCheckout .= "_*" . __("Phone") . ": " . $order->customer_phone . "*_" . PHP_EOL; } $linkSimplifiedCheckout .= PHP_EOL . "*---------------------------------*".PHP_EOL.PHP_EOL; foreach($tempcart->items as $product) { $linkSimplifiedCheckout .= "*" . __("Product") . "*: " . $product['item']['name'].PHP_EOL; $linkSimplifiedCheckout .= "*" . __("Quantity") . "*: " . $product['qty'].PHP_EOL; $linkSimplifiedCheckout .= "*" . __("Price") . "*: " . $order->currency_sign . number_format($product['item']['price'] * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator).PHP_EOL; $linkSimplifiedCheckout .= (route('front.product', ['slug' => $product['item']['slug']])).PHP_EOL.PHP_EOL; $linkSimplifiedCheckout .= "*---------------------------------*".PHP_EOL.PHP_EOL; } if ($order->tax) { $linkSimplifiedCheckout .= "*" . __("Tax") . "*: " . $order->tax . "%" .PHP_EOL; } if ($order->coupon_code) { $linkSimplifiedCheckout .= "*" . __("Discount") . "*: " . $order->currency_sign . number_format($order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator).PHP_EOL; } $linkSimplifiedCheckout .= "*" . __("Order Amount") . "*: " . $order->currency_sign . number_format($order->pay_amount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator).PHP_EOL.PHP_EOL; $linkSimplifiedCheckout .= "_" . __("Order Number") . " - " . $order->order_number . "_".PHP_EOL; $linkSimplifiedCheckout .= "_" . __("Date") . " - " . Carbon\Carbon::now()->toDateTimeString() . "_"; $linkMobile = "https:///api.whatsapp.com/send?1=pt_BR&phone=" . $gs->simplified_checkout_number . "&text=" . urlencode($linkSimplifiedCheckout); @endphp

{{ __("If the conversation page does not open automatically") . " " }}

{{ __("Click Here") }}
{{ __("Get Back To Our Homepage") }}

{{ __("Order#") }} {{$order->order_number}}

@include('includes.form-success')

{{ __("Order Date") }} {{date('d-M-Y',strtotime($order->created_at))}}


{{ __("Customer Information") }}
@if($order->customer_name) {{__("Name") . ": " . $order->customer_name}} @else {{__("Anonymous") . ": "}} @endif
@if($order->customer_phone) {{__("Phone") . ": " . $order->customer_phone}} @endif
{{ __("Order Information") }}

@if($order->tax != 0) {{ __('Tax') . ": " }} {{$order->tax . "%"}}
@endif @if($order->coupon_discount != 0) {{ __('Discount') . ": " }} {{$order->currency_sign}}{{ number_format($order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator) }}
@endif {{ __("Order Amount") . ":" }} {{$order->currency_sign}}{{ number_format($order->pay_amount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator) }}
{{ __('Total') . ": " }} {{$first_curr->sign}}{{ number_format($order->pay_amount, $first_curr->decimal_digits, $first_curr->decimal_separator,$first_curr->thousands_separator) }}

{{ __("Order Method") . ": " }} {{$order->method}}


{{ __("Ordered Products:") }}

@foreach($tempcart->items as $product) @endforeach
{{ __("Name") }} {{ __("Details") }} {{ __("Price") }} {{ __("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
{{ __("Quantity") }}: {{$product['qty']}}
@if(!empty($product['size'])) {{ __("Size") }}: {{ $product['item']['measure'] }}{{str_replace('-',' ',$product['size'])}}
@endif @if(!empty($product['color']))
{{ __("Color") }}:
@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['item']['price'] * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator,$order_curr->thousands_separator)}}
{{$first_curr->sign}}{{ number_format($product['item']['price'], $first_curr->decimal_digits, $first_curr->decimal_separator,$first_curr->thousands_separator) }}
{{$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) }}
@endif
@endsection