@extends('layouts.front') @section('content')
@if(!empty($tempcart))

{{ $langg->order_title }}

{{ $langg->order_text }}

{{ $langg->lang170 }}

{{ $langg->lang285 }} {{$order->order_number}}

@include('includes.form-success')

{{ $langg->lang301 }} {{date('d-M-Y',strtotime($order->created_at))}}

@if($order->dp == 1)
{{ $langg->lang287 }}
{{ $langg->lang288 }} {{$order->customer_name}}
{{ $langg->lang289 }} {{$order->customer_email}}
{{ $langg->lang290 }} {{$order->customer_phone}}
{{ $langg->lang291 }} {{$order->customer_address}}
{{$order->customer_city}}-{{$order->customer_zip}}
{{ $langg->lang292 }}

{{ $langg->lang293 }} {{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }}

{{ $langg->lang294 }} {{$order->method}}

@if($order->method != "Cash On Delivery") @if($order->method=="Stripe") {{$order->method}} {{ $langg->lang295 }}

{{$order->charge_id}}

@endif {{$order->method}} {{ $langg->lang296 }}

{{$order->txnid}}

@endif
@else
@if($order->shipping == "shipto")
{{ $langg->lang302 }}
{{ $langg->lang288 }} {{$order->shipping_name == null ? $order->customer_name : $order->shipping_name}}
{{ $langg->lang289 }} {{$order->shipping_email == null ? $order->customer_email : $order->shipping_email}}
{{ $langg->lang290 }} {{$order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone}}
{{ $langg->lang291 }} {{$order->shipping_address == null ? $order->customer_address : $order->shipping_address}}
{{$order->shipping_city == null ? $order->customer_city : $order->shipping_city}}-{{$order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip}}
@else
{{ $langg->lang303 }}
{{ $langg->lang304 }} {{$order->pickup_location}}
@endif
{{ $langg->lang305 }}
@if($order->shipping == "shipto")

{{ $langg->lang306 }}

@else

{{ $langg->lang307 }}

@endif
{{ $langg->lang287 }}
{{ $langg->lang288 }} {{$order->customer_name}}
{{ $langg->lang289 }} {{$order->customer_email}}
{{ $langg->lang290 }} {{$order->customer_phone}}
{{ $langg->lang291 }} {{$order->customer_address}}
{{$order->customer_city}}-{{$order->customer_zip}}
{{ $langg->lang292 }}

{{ $langg->lang293 }} {{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }}

{{ $langg->lang294 }} {{$order->method}}

@if($order->method != "Cash On Delivery") @if($order->method=="Stripe") {{$order->method}} {{ $langg->lang295 }}

{{$order->charge_id}}

@endif @if($order->method=="Paypal") {{$order->method}} {{ $langg->lang296 }}

{{ isset($_GET['tx']) ? $_GET['tx'] : '' }}

@else {{$order->method}} {{ $langg->lang296 }}

{{$order->txnid}}

@endif @endif
@endif

{{ $langg->lang308 }}

@foreach($tempcart->items as $product) @endforeach
{{ $langg->lang310 }} {{ $langg->lang539 }} {{ $langg->lang314 }} {{ $langg->lang315 }}
{{ $product['item']['name'] }} {{ $langg->lang311 }}: {{$product['qty']}}
@if(!empty($product['size'])) {{ $langg->lang312 }}: {{ $product['item']['measure'] }}{{$product['size']}}
@endif @if(!empty($product['color']))
{{ $langg->lang313 }}:
@endif @if(!empty($product['keys'])) @foreach( array_combine(explode(',', $product['keys']), explode(',', $product['values'])) as $key => $value) {{ ucwords(str_replace('_', ' ', $key)) }} : {{ $value }}
@endforeach @endif
{{$order->currency_sign}}{{round($product['item']['price'] * $order->currency_value,2)}} {{$order->currency_sign}}{{round($product['price'] * $order->currency_value,2)}}
@endif
@endsection