User/ Order Details
User Details
| User Name | {{$orders[0]->user_name}} | 
| User Email | {{$orders[0]->email}} | 
| User Phone | {{$orders[0]->user_phone}} | 
Order Details
| Order Id | myl-pp-{{$orders[0]->id}} | 
| Order Placed On: | {{$orders[0]->ord_date}} | 
| Order Placed from(device): | @if($orders[0]->payment_device == 1) Android @elseif($orders[0]->payment_device == 2) iOS @else Website @endif | 
| Order Status: | @if($orders[0]->ord_tracking_status !='') {{$orders[0]->ord_tracking_status}} @elseif($orders[0]->payment_txn_status ==1) Created @elseif($orders[0]->payment_txn_status ==2) Processing @elseif($orders[0]->payment_txn_status ==3) Cancelled @else @endif | 
| Coupon Code used: | {{$orders[0]->user_applied_coupon}} | 
| Payment ID: | {{$orders[0]->payment_id}} | 
| Payment Method: | @if($orders[0]->paid_by == 1)Razorpay @else Paytm @endif | 
| Payment Status: | @if($orders[0]->payment_txn_status ==1) Created @elseif($orders[0]->payment_txn_status ==2 && $orders[0]->payment_id !='0') Success @elseif($orders[0]->payment_txn_status ==3) Failure @else Failure @endif | 
| Transaction Message: | {{$orders[0]->txn_message}} | 
| Tracking ID: | {{$orders[0]->tracking_id}} | 
| Tracking URL: | {{$orders[0]->tracking_url}} | 
| FEP Sync: | @if($orders[0]->fep_order_push_status == 1)Synced @else Not Synced @endif | 
| FEP Response: | @if($orders[0]->responseStatusCode == 400)@php $decoded_status = json_decode($orders[0]->responseMessage,true);  @endphp 
										Message - {{$decoded_status['responseMessage']}} 
										@else
											Message - Success
										@endif Sync Status - {{$orders[0]->responseStatusCode}} | 
Product Details
| Product | Total | ||
|---|---|---|---|
| {{ $product[0]}} - {{ $Qty[0] }} @endif
										@if($lists->pro_type == 4){{ $product[1]}} - {{ $Qty[1] }} Qty - {{ $lists->pro_qty }} | Customize your flow  * {{ $lists->pro_qty }} @else{{ $product[0]}} - {{ $Qty[0] }} {{ $product[1]}} - {{ $Qty[1] }} | {{ $lists->pro_name }} * {{ $lists->pro_qty }}@endif | {{ $lists->total_amt }} | 
| Subtotal: | {{ array_sum($total) }} | ||
| Coupon used: @if($orders[0]->user_applied_coupon !=0)( {{$orders[0]->user_applied_coupon}} ) @else @endif | {{$orders[0]->usr_coupon_amount}} | ||
| Shipping: | {{$lists->shipping_amt}} | ||
| Total: | {{ $total_amount }} | 
@if(count($subscription) > 0)
Subscription Batch
| Batch | Order ID | SKU | Type | Status | Batch Date | Delivery frequency | Tracking ID | Tracking URL | 
|---|---|---|---|---|---|---|---|---|
| {{$sub->wp_subsc_order_batch}} | {{$sub->wp_order_id}} | {{$sub->wp_product_sku}} | @if($sub->wp_subscrtion_id == 1) 6 Months @elseif($sub->wp_subscrtion_id == 2) 12 Months @endif | @if($sub->fep_order_push_status == 1) Synced @elseif($sub->fep_order_push_status == 0) Not Synced @endif | {{$sub->fep_order_tobe_sent_on}} | @if($sub->wp_delivery_in_months == 1) Monthly Once @else {$sub->wp_delivery_in_months}} Months Once @endif | @if($sub->tracking_id != ''){{$sub->tracking_id}} @else - @endif | @if($sub->tracking_url != ''){{$sub->tracking_url}} @else - @endif | 
@php $address=DB::table('user_address')->where('id',$lists->shipping_address_id)->first(); //print_r($address); @endphp
| Billing Address | Shipping Address | |||||||||||||||||
| 
 | ||||||||||||||||||
