@extends('layouts.front-end.app') @section('title',\App\CPU\translate('Order Details')) @push('css_or_js') @endpush @section('content')
@include('web-views.partials._profile-aside') {{-- Content --}}
@if(\App\CPU\Helpers::get_business_settings('order_verification'))

{{\App\CPU\translate('order_verification_code')}} : {{$order['verification_code']}}

@endif
@if(isset($order['seller_id']) != 0) @php($shopName=\App\Model\Shop::where('seller_id', $order['seller_id'])->first()) @endif @if( $order->order_type == 'default_type') @endif
{{\App\CPU\translate('order_no')}}:
{{$order->id}}
{{\App\CPU\translate('order_date')}}:
{{date('d M, Y',strtotime($order->created_at))}}
{{\App\CPU\translate('shipping_address')}}:
@if($order->shippingAddress) @php($shipping=$order->shippingAddress) @else @php($shipping=json_decode($order['shipping_address_data'])) @endif
@if($shipping) {{$shipping->address}},
{{$shipping->city}} , {{$shipping->zip}} @endif
{{\App\CPU\translate('billing_address')}}:
@if($order->billingAddress) @php($billing=$order->billingAddress) @else @php($billing=json_decode($order['billing_address_data'])) @endif
@if($billing) {{$billing->address}},
{{$billing->city}} , {{$billing->zip}} @else {{$shipping->address}},
{{$shipping->city}} , {{$shipping->zip}} @endif
@foreach ($order->details as $key=>$detail) @php($product=json_decode($detail->product_details,true))
VR Collection {{isset($product['name']) ? Str::limit($product['name'],40) : ''}} @if($detail->refund_request == 1) ({{\App\CPU\translate('refund_pending')}})
@elseif($detail->refund_request == 2) ({{\App\CPU\translate('refund_approved')}})
@elseif($detail->refund_request == 3) ({{\App\CPU\translate('refund_rejected')}})
@elseif($detail->refund_request == 4) ({{\App\CPU\translate('refund_refunded')}})
@endif
{{\App\CPU\translate('variant')}} : {{$detail->variant}}
{{\App\CPU\Helpers::currency_converter($detail->price)}}
{{\App\CPU\translate('qty')}}: {{$detail->qty}}