@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 : '; } if($key=='name') { echo 'Product Name : '.$value1.' '; } if($key=='quantity') { echo 'Quantity : '.$value1.' '; } if($key=='price') { echo 'Price : Rs.'.$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 |
@if($value->subtotal)
Sub Total : Rs.{{ $value->subtotal }} @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 : Rs.{{ $value->order_notes }} @endif @if($value->payment_status) Payment Status : Rs.{{ $value->payment_status }} @endif @if($value->payment_mode) Payment Mode : Rs.{{ $value->payment_mode }} @endif @if($value->shipping_status) Shipping Status : Rs.{{ $value->shipping_status }} @endif @if($value->tracking_no) Tracking No : {{ $value->tracking_no }} @endif @if($value->courier_name) Courier Name : Rs.{{ $value->courier_name }} @endif @if($value->shipping_status) Shipping status : Rs.{{ $value->shipping_status }} @endif |
{{ ($value->order_status) ? $value->order_status : 'Failure' }} |