@extends('layouts.vendor') @section('styles') @endsection @section('content')
@include('includes.admin.form-both')

{{ $langg->lang549 }}

@if(Auth::user()->id == $order->vendor_shipping_id) @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) @endif @endif @endif @if(Auth::user()->id == $order->vendor_packing_id) @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) @endif @endif @endif @php $price = number_format($order->vendororders()->where('user_id','=',$user->id)->sum('price'),9); if($user->shipping_cost != 0){ $price = $price + round($user->shipping_cost * $order->currency_value , 2); } if($order->tax != 0){ $tax = ($price / 100) * $order->tax; $price += $tax; } @endphp @php $note = DB::table('vendor_orders') ->where('order_number', $order->order_number) ->first(); @endphp @if($order->is_api == 1) @else @endif @if($order->method != "Cash On Delivery") @if($order->method=="Stripe") @endif @endif @if(!empty($order->order_note)) @endif
{{ $langg->lang551 }} : {{$order->order_number}}
{{ $langg->lang552 }} : {{$order->vendororders()->where('user_id','=',$user->id)->sum('qty')}}
{{ DB::table('shippings')->where('price','=',$price)->first()->title }} : {{ $order->currency_sign }}{{ round($order->shipping_cost, 2) }}
{{ DB::table('packages')->where('price','=',$pprice)->first()->title }} : {{ $order->currency_sign }}{{ round($order->packing_cost, 2) }}
{{ $langg->lang553 }} :{{$order->currency_sign}}{{ round($note->price * $order->currency_value , 2) }}{{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }}
{{ $langg->lang554 }} : {{date('d-M-Y H:i:s a',strtotime($order->created_at))}}
{{ $langg->lang795 }} : {{$order->method}}
{{$order->method}} {{ $langg->lang796 }} : {{$order->charge_id}}
{{$order->method}} {{ $langg->lang797 }} : {{$order->txnid}}
{{ $langg->lang798 }} : {!! $order->payment_status == 'Pending' ? "". $langg->lang799 ."":"". $langg->lang800 ."" !!}
{{ $langg->lang801 }} : {{$order->order_note}}

{{ $langg->lang556 }}

{{ $langg->lang557 }} : {{$order->customer_name}}
{{ $langg->lang558 }} : {{$order->customer_email}}
{{ $langg->lang559 }} : {{$order->customer_phone}}
{{ $langg->lang560 }} : {{$order->customer_address}}
{{ $langg->lang561 }} : {{$order->customer_country}}
{{ $langg->lang562 }} : {{$order->customer_city}}
{{ $langg->lang563 }} : {{$order->customer_zip}}
@if($order->dp == 0)

{{ $langg->lang564 }}

@if($order->shipping == "pickup") @else @endif
{{ $langg->lang565 }}: : {{$order->pickup_location}}
{{ $langg->lang557 }}: : {{$order->shipping_name == null ? $order->customer_name : $order->shipping_name}}
{{ $langg->lang558 }}: : {{$order->shipping_email == null ? $order->customer_email : $order->shipping_email}}
{{ $langg->lang559 }}: : {{$order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone}}
{{ $langg->lang560 }}: : {{$order->shipping_address == null ? $order->customer_address : $order->shipping_address}}
{{ $langg->lang561 }}: : {{$order->shipping_country == null ? $order->customer_country : $order->shipping_country}}
{{ $langg->lang562 }}: : {{$order->shipping_city == null ? $order->customer_city : $order->shipping_city}}
{{ $langg->lang563 }}: : {{$order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip}}
@endif

{{ $langg->lang1000 }}

{{ $langg->lang1001 }} : {{ $order->dhl_tracking_code }} {{ $langg->lang1004 }}
{{ $langg->lang1002 }} :
-
{{ $langg->lang1003 }}

{{ $langg->lang1012}}.

iVoy {{ $langg->lang1011}}

{{ $langg->lang566 }}

@if(isset($cart->items)) @foreach($cart->items as $key => $product) @if($product['item']['user_id'] != 0) @if($product['item']['user_id'] == $user->id) @if($order->is_api) @else @endif @endif @endif @endforeach @endif @if(isset($cart['items'])) @foreach($cart['items'] as $prod) @if($prod['size'] == '') @else @endif @endforeach @endif
{{ $langg->lang567 }} {{ $langg->lang568 }} {{ $langg->lang569 }} {{ $langg->lang570 }} {{ $langg->lang539 }} {{ $langg->lang574 }}
{{ $product['item']['id'] }} @if($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if(isset($user)) {{$user->shop_name}} @else {{ $langg->lang575 }} @endif @endif @if($product['item']['user_id'] != 0) @php $user = App\Models\VendorOrder::where('order_id','=',$order->id)->where('user_id','=',$product['item']['user_id'])->first(); @endphp @if($order->dp == 1 && $order->payment_status == 'Completed') {{ $langg->lang542 }} @else @if($user->status == 'pending') {{ucwords($user->status)}} @elseif($user->status == 'processing') {{ucwords($user->status)}} @elseif($user->status == 'on delivery') {{ucwords($user->status)}} @elseif($user->status == 'completed') {{ucwords($user->status)}} @elseif($user->status == 'declined') {{ucwords($user->status)}} @endif @endif @endif @if($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if(isset($user)) {{mb_strlen($product['item']['name'],'utf-8') > 30 ? mb_substr($product['item']['name'],0,30,'utf-8').'...' : $product['item']['name']}} @else {{mb_strlen($product['item']['name'],'utf-8') > 30 ? mb_substr($product['item']['name'],0,30,'utf-8').'...' : $product['item']['name']}} @endif @endif @if($product['license'] != '') View License @endif @if($product['size'])

{{ $langg->lang312 }} : {{str_replace('-',' ',$product['size'])}}

@endif @if($product['color'])

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

@endif @if($order->is_api) {{ $langg->lang754 }} :{{$order->currency_sign}}{{ round($note->price / $order->vendororders()->where('user_id','=',$user->id)->sum('qty') * $order->currency_value , 2) }} @else

{{ $langg->lang754 }} : {{$order->currency_sign}}{{ round($product['item']['price'] * $order->currency_value , 2) }}

@endif @if($order->is_api)

{{ $langg->lang311 }} : {{round($order->vendororders()->where('user_id','=',$user->id)->sum('qty'))}}

@else

{{ $langg->lang311 }} : {{$product['qty']}}

@endif @if($product['item']['measure'])

Medidas :{{ $product['item']['measure'] }}

@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($note->price * $order->currency_value , 2) }}{{$order->currency_sign}}{{ round($product['price'] * $order->currency_value , 2) }}
{{ $prod['item']['id'] }} @if($prod['item']['user_id'] != 0) @php $user = App\Models\User::find($prod['item']['user_id']); @endphp @if(isset($user)) {{$user->shop_name}} @else {{ $langg->lang575 }} @endif @endif @if($prod['item']['user_id'] != 0) @php $user = App\Models\VendorOrder::where('order_id','=',$order->id)->where('user_id','=',$prod['item']['user_id'])->first(); @endphp @if($order->dp == 1 && $order->payment_status == 'Completed') {{ $langg->lang542 }} @else @if($user->status == 'pending') {{ucwords($user->status)}} @elseif($user->status == 'processing') {{ucwords($user->status)}} @elseif($user->status == 'on delivery') {{ucwords($user->status)}} @elseif($user->status == 'completed') {{ucwords($user->status)}} @elseif($user->status == 'declined') {{ucwords($user->status)}} @endif @endif @endif @if($prod['item']['user_id'] != 0) @php $user = App\Models\User::find($prod['item']['user_id']); @endphp @if(isset($user)) {{mb_strlen($prod['item']['name'],'utf-8') > 30 ? mb_substr($prod['item']['name'],0,30,'utf-8').'...' : $prod['item']['name']}} @else {{mb_strlen($prod['item']['name'],'utf-8') > 30 ? mb_substr($prod['item']['name'],0,30,'utf-8').'...' : $prod['item']['name']}} @endif @endif @if($prod['license'] != '') View License @endif @if($prod['size'])

{{ $langg->lang312 }} : {{str_replace('-',' ',$prod['size'])}}

@endif @if($prod['color'])

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

@endif

{{ $langg->lang754 }} : {{$order->currency_sign}}{{ round($prod['item']['price'] * $order->currency_value , 2) }}

{{ $langg->lang311 }} : {{$prod['qty']}} {{ $prod['item']['measure'] }}

@if(!empty($prod['keys'])) @foreach( array_combine(explode(',', $prod['keys']), explode(',', $prod['values'])) as $key => $value)

{{ ucwords(str_replace('_', ' ', $key)) }} : {{ $value }}

@endforeach @endif
{{$order->currency_sign}}{{ round($prod['price'] * $order->currency_value , 2) }} @if($prod['size']) @php $clave = array_search(round($prod['price'] * $order->currency_value / $order->totalQty,2), $prod['item']['size_price']); @endphp

{{ $langg->lang312 }} : {{$prod['item']['size'][$clave]}}

@endif @if($prod['color'] != '')

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

@endif

{{ $langg->lang754 }} : {{$order->currency_sign}}{{ round($prod['price'] * $order->currency_value / $order->totalQty , 2) }}

{{ $langg->lang311 }} : {{$prod['qty']}} {{ $prod['item']['measure'] }}

@if(!empty($prod['keys'])) @foreach( array_combine(explode(',', $prod['keys']), explode(',', $prod['values'])) as $key => $value)

{{ ucwords(str_replace('_', ' ', $key)) }} : {{ $value }}

@endforeach @endif
{{$order->currency_sign}}{{ round($prod['price'] * $order->currency_value , 2) }}
{{-- LICENSE MODAL --}} {{-- TRACKING CODE DHL MODAL --}} {{-- LICENSE MODAL ENDS --}} {{-- MESSAGE MODAL --}}
{{-- MESSAGE MODAL ENDS --}} @endsection @section('scripts') @if($order->dhl_tracking_code != null) @endif @endsection