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

{{ __('Order Details') }}

@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 @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 @if($order->method != "Cash On Delivery") @if($order->method=="Stripe") @endif @endif @if(!empty($order->order_note)) @endif
{{ __('Order ID') }} : {{$order->order_number}}
{{ __('Total Product') }} : {{$order->totalQty}}
{{ 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) }}
{{ __('Total Cost') }} : {{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }}
{{ __('Ordered Date') }} : {{date('d-M-Y H:i:s a',strtotime($order->created_at))}}
{{ __('Payment Method') }} : {{$order->method}}
{{$order->method}} {{ __('Charge ID') }} : {{$order->charge_id}}
{{$order->method}} {{ __('Transaction ID') }} : {{$order->txnid}}
{{ __('Payment Status') }} : {!! $order->payment_status == 'Pending' ? "Unpaid":"Paid" !!}
{{ __('Order Note') }} : {{$order->order_note}}

{{ __('Billing Details') }}

@if($order->coupon_code != null) @endif @if($order->coupon_discount != null) @if($gs->currency_format == 0) @else @endif @endif @if($order->affilate_user != null) @endif @if($order->affilate_charge != null) @if($gs->currency_format == 0) @else @endif @endif
{{ __('Name') }} : {{$order->customer_name}}
{{ __('Email') }} : {{$order->customer_email}}
{{ __('Phone') }} : {{$order->customer_phone}}
{{ __('Address') }} : {{$order->customer_address}}
{{ __('Country') }} : {{$order->customer_country}}
{{ __('State') }} : {{$order->customer_state}}
{{ __('City') }} : {{$order->customer_city}}
{{ __('Postal Code') }} : {{$order->customer_zip}}
{{ __('Coupon Code') }} : {{$order->coupon_code}}
{{ __('Coupon Discount') }} :{{ $order->currency_sign }}{{ $order->coupon_discount }}{{ $order->coupon_discount }}{{ $order->currency_sign }}
{{ __('Affilate User') }} : {{$order->affilate_user}}
{{ __('Affilate Charge') }} :{{ $order->currency_sign }}{{$order->affilate_charge}}{{$order->affilate_charge}}{{ $order->currency_sign }}
@if($order->dp == 0)

{{ __('Shipping Details') }}

@if($order->shipping == "pickup") @else @endif
{{ __('Pickup Location') }}: : {{$order->pickup_location}}
{{ __('Name') }}: : {{$order->shipping_name == null ? $order->customer_name : $order->shipping_name}}
{{ __('Email') }}: : {{$order->shipping_email == null ? $order->customer_email : $order->shipping_email}}
{{ __('Phone') }}: : {{$order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone}}
{{ __('Address') }}: : {{$order->shipping_address == null ? $order->customer_address : $order->shipping_address}}
{{ __('Country') }}: : {{$order->shipping_country == null ? $order->customer_country : $order->shipping_country}}
{{ __('State') }}: : {{$order->customer_state}}
{{ __('City') }}: : {{$order->shipping_city == null ? $order->customer_city : $order->shipping_city}}
{{ __('Postal Code') }}: : {{$order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip}}
@endif

{{ __('Products Ordered') }}

@if(isset($cart->items)) @foreach($cart->items as $key => $product) @endforeach @endif @if(isset($cart['items'])) @foreach($cart['items'] as $prod) @if($prod['size'] == '') @else @endif @endforeach @endif
{{ __('Product ID#') }} {{ __('Shop Name') }} {{ __('Vendor Status') }} {{ __('Product Title') }} {{ __('Details') }} {{ __('Total Price') }}
{{ $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 {{ __('Vendor Removed') }} @endif @else {{ App\Models\Admin::find(1)->shop_name }} @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') {{ __('Completed') }} @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 @else {{mb_strlen($product['item']['name'],'utf-8') > 30 ? mb_substr($product['item']['name'],0,30,'utf-8').'...' : $product['item']['name']}} @endif @if($product['license'] != '') {{ __('View License') }} @endif @if($product['size'])

{{ __('Size') }} : {{str_replace('-',' ',$product['size'])}}

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

{{ __('color') }} :

@endif--}}

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

{{ __('Qty') }} : {{$product['qty']}} {{ $product['item']['measure'] }}

@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['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 --}} {{-- LICENSE MODAL ENDS --}} {{-- MESSAGE MODAL --}}
{{-- MESSAGE MODAL ENDS --}} {{-- ORDER MODAL --}} {{-- ORDER MODAL ENDS --}} @endsection @section('scripts') @endsection