@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}}
{{$lang->lang478}} {{$order->customer_state}}
{{$langg->lang158}} {{$order->customer_city}}
{{$langg->lang213}} {{$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}}
{{$langg->lang478}} {{$order->customer_state}}
{{$langg->lang158 }} {{ $order->shipping_city == null ? $order->customer_city : $order->shipping_cit }}
{{$langg->lang213 }}{{ $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 @if($order->shipping_cost != 0) @php $price = round(($order->shipping_cost / $order->currency_value),2); @endphp @if(DB::table('shippings')->where('price','=',$price)->count() > 0)

{{ DB::table('shippings')->where('price','=',$price)->first()->title }}: {{$order->currency_sign}}{{ round($order->shipping_cost, 2) }}

@endif @endif @if($order->packing_cost != 0) @php $pprice = round(($order->packing_cost / $order->currency_value),2); @endphp @if(DB::table('packages')->where('price','=',$pprice)->count() > 0)

{{ DB::table('packages')->where('price','=',$pprice)->first()->title }}: {{$order->currency_sign}}{{ round($order->packing_cost, 2) }}

@endif @endif
{{ $langg->lang287 }}
{{ $langg->lang288 }} {{$order->customer_name}}
{{ $langg->lang289 }} {{$order->customer_email}}
{{ $langg->lang290 }} {{$order->customer_phone}}
{{ $langg->lang291 }} {{$order->customer_address}}
{{$langg->lang478}} {{$order->customer_state}}
{{$langg->lang158}} {{$order->customer_city}}
{{$langg->lang213}} {{$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'] }}{{str_replace('-',' ',$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($order->pay_amount * $order->currency_value , 2) }}
{{__('Costo de EnvĂ­o')}} ${{ $gs->delivery_pay}} ${{ $gs->delivery_pay}}
@endif
@endsection