@extends('layouts.vendor') @section('styles') @endsection @section('content')
{{ $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 }} | : | @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){{$order->currency_sign}}{{ round($note->price * $order->currency_value , 2) }} | @else{{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }} | @endif
{{ $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->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}} |
{{ $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}} |
{{ $langg->lang1001 }} | : | {{ $order->dhl_tracking_code }} {{ $langg->lang1004 }} |
---|---|---|
{{ $langg->lang1002 }} | : |
-
|
{{ $langg->lang1012}}.
{{ $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 |
@if($order->is_api)
{{$order->currency_sign}}{{ round($note->price * $order->currency_value , 2) }} | @else{{$order->currency_sign}}{{ round($product['price'] * $order->currency_value , 2) }} | @endif|
{{ $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'] == '')
@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) }} | @else
@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) }} | @endif