@extends('layouts.front') @section('content') @php $cart = unserialize(bzdecompress(utf8_decode($order[0]["cart"]))); $note = DB::table('vendor_orders') ->where('order_number', $order[0]["order_number"]) ->first(); // var_dump($cart);die(); @endphp

{{ $langg->order_title }}

{{ $langg->order_text }}

{{ $langg->lang170 }}

{{ $langg->lang285 }} {{$order[0]["order_number"]}}

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

@if($order[0]["dp"] == 1)
{{ $langg->lang287 }}
{{ $langg->lang288}} {{$order[0]["customer_name"]}}
{{ $langg->lang289}} {{$order[0]["customer_email"]}}
{{ $langg->lang290}} {{$order[0]["customer_phone"]}}
{{ $langg->lang291}} {{$order[0]["customer_address"]}}
{{$lang->lang478}} {{$order[0]["customer_state"]}}
{{$langg->lang158}} {{$order[0]["customer_city"]}}
{{$langg->lang213}} {{$order[0]["customer_zip"]}}
{{ $langg->lang292 }}

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

{{ $langg->lang294 }} {{$order[0]["method"]}}

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

{{ $langg->lang306 }}

@else

{{ $langg->lang307 }}

@endif @if($order[0]["shipping_cost"] != 0) @php $price = round(($order[0]["shipping_cost"] / $order[0]["currency_value"]),2); @endphp @if(DB::table('shippings')->where('price','=',$price)->count() > 0)

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

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

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

@endif @else @php $pprice = 0; @endphp @endif
{{ $langg->lang287 }}
{{ $langg->lang288 }} {{$order[0]["customer_name"]}}
{{ $langg->lang289 }} {{$order[0]["customer_email"]}}
{{ $langg->lang290 }} {{$order[0]["customer_phone"]}}
{{ $langg->lang291 }} {{$order[0]["customer_address"]}}
{{$langg->lang478}} {{$order[0]["customer_state"]}}
{{$langg->lang158}} {{$order[0]["customer_city"]}}
{{$langg->lang213}} {{$order[0]["customer_zip"]}}
{{ $langg->lang292 }}

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

{{-- @if($cart['items'][0]['size'] == '')

{{ $langg->lang293 }} {{$order[0]["currency_sign"]}}{{ round($note->price * $order[0]["currency_value"] , 2) + $pprice + $price }}

@else

{{ $langg->lang293 }} {{$order[0]["currency_sign"]}}{{ round($note->price * $order[0]["currency_value"], 2) }}

@endif --}}

{{ $langg->lang294 }} {{$order[0]["method"]}}

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

{{$order[0]["charge_id"]}}

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

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

@else {{$order[0]["method"]}} {{ $langg->lang296 }}

{{$order[0]["txnid"]}}

@endif @endif
@endif

{{ $langg->lang308 }}

@foreach($cart['items'] as $prod) @if($prod['item']['size'] == '') @else @endif @endforeach
{{ $langg->lang310 }} {{ $langg->lang539 }} {{ $langg->lang314 }} {{ $langg->lang315 }}
{{ $prod['item']['name'] }} {{ $langg->lang311 }}: {{$prod['qty']}}
@if($prod['item']['measure'] != '') {{ $langg->lang312 }}: {{ $prod['item']['measure'] }}
@endif @if($prod['color'] != '')

{{-- Se corrige error de string a array en color --}} {{ $langg->lang313 }} :


@endif @if(!empty($cart['keys'])) @foreach( array_combine(explode(',', $cart['keys']), explode(',', $cart['values'])) as $key => $value) {{ ucwords(str_replace('_', ' ', $key)) }} : {{ $value }}
@endforeach @endif
{{$order[0]["currency_sign"]}}{{round($prod['item']['price'] * $order[0]["currency_value"],2)}} {{$order[0]["currency_sign"]}}{{ round($prod['item']['price'] * $order[0]["currency_value"] * $prod['qty'] , 2) }}
{{ $prod['item']['name'] }} {{ $langg->lang311 }}: {{$order[0]['totalQty']}}
@php $clave = array_search(round($prod['price'] * $order[0]["currency_value"],2), $prod['item']['size_price']); @endphp {{ $langg->lang312 }}: {{$prod['item']['size'][$clave]}}
@if($prod['color'] != '')

{{-- Se corrige error de string a array en color --}} {{ $langg->lang313 }} :


@endif
{{$order[0]["currency_sign"]}}{{round($prod['price'] * $order[0]["currency_value"],2)}} {{$order[0]["currency_sign"]}}{{ round($prod['price'] * $order[0]["currency_value"] , 2) }}
{{__('Costo de EnvĂ­o')}} ${{ $gs->delivery_pay}} ${{ $gs->delivery_pay}}
@endsection