| Id |
Order Id |
Order status |
User |
Products |
Shipping |
Billing |
subtotal |
Coupon discount |
Grand total |
Order notes |
Payment status |
Shipping status |
Tracking no |
Courier name |
@foreach($orders as $value)
{{ $i++ }} |
{{ $value->order_id }} |
{{ $value->order_status }} |
Name : {{ $value->name }}
Email : {{ $value->email }}
|
{{-- {{ $value->products }} --}}
@php
$products = array();
$products = json_decode($value->products);
foreach ($products as $value2) {
foreach ($value2 as $key => $value1) {
if($key=='product_id')
{
echo 'Product Image : .') ';
}
if($key=='name')
{
echo 'Product Name : '.$value1.' ';
}
if($key=='quantity')
{
echo 'Quantity : '.$value1.' ';
}
if($key=='price')
{
echo 'Price : '.$value1.' ';
}
echo "";
}
}
@endphp
|
@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
|
Rs.{{ $value->subtotal }}
|
Rs.{{ $value->coupon_discount }}
|
Rs.{{ $value->grand_total }}
|
{{ $value->order_notes }}
|
{{ $value->payment_status }}
|
{{ $value->shipping_status }}
|
{{ $value->tracking_no }}
|
{{ $value->courier_name }}
|
{{ $value->payment_mode }}
|
|