@extends('user.app') @section('pagetitle'){{ $user->name}}@stop @php $mobile = ''; if(isset($usermeta->mobile)) { $mobile = $usermeta->mobile; } @endphp @section('main-content')
| SL. | Order ID | Produts | Shipping | Billing | Order Information | Status |
|---|---|---|---|---|---|---|
| {{$i++}} | {{$value->order_id}} | @php
$products = array();
$products = json_decode($value->products);
//print_r($products);
foreach ($products as $value2) {
foreach ($value2 as $key => $value1) {
if($key=='product_id')
{
echo 'Product Image : |
@php $shipping_address = json_decode($value->shipping_address); foreach ($shipping_address as $key1 => $value3) { $key1 = str_replace("shipping", "", $key1); $key1 = str_replace("delivery", "", $key1); echo ''.ucwords(str_replace("_"," ",$key1)).' : '.$value3.''; } @endphp | @php $billing_address = json_decode($value->billing_address); foreach ($billing_address as $key2 => $value4) { $key2 = str_replace("billing", "", $key2); echo ''.ucwords(str_replace("_"," ",$key2)).' : '.$value4.''; } @endphp | @if($value->subtotal) Sub Total : Rs.{{ $value->subtotal }} @endif @if($value->wallet_value) wallet : Rs.{{ $value->wallet_value }} @endif {{-- @if($value->coupon_discount) coupon discount : Rs.{{ $value->coupon_discount }} @endif --}} @if($value->grand_total) Grand Total : Rs.{{ $value->grand_total }} @endif @if($value->order_notes) Order Notes : {{ $value->order_notes }} @endif @if($value->payment_status) Payment By : {{ $value->payment_status }} @endif @if($value->payment_mode) Payment Mode : {{ $value->payment_mode }} @endif @if($value->shipping_status) Shipping Status : {{ $value->shipping_status }} @endif @if($value->tracking_no) Tracking No : {{ $value->tracking_no }} @endif @if($value->courier_name) Courier Name : {{ $value->courier_name }} @endif @if($value->shipping_status) Shipping status : {{ $value->shipping_status }} @endif | {{ ($value->order_status) ? $value->order_status : 'Failure' }} |