@extends('user.app') @section('pagetitle'){{ $user->name}}@stop @php $mobile = ''; if(isset($usermeta->mobile)) { $mobile = $usermeta->mobile; } @endphp @section('main-content')
@if(isset($user))

{{ $user->name}}

@endif
@php $i=1; @endphp @if(isset($orders)) @foreach($orders as $value) @endforeach @endif
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->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' }}

Personal Information

{!! Form::open(array('route' => 'profile.update','method'=>'POST', 'id' =>'facaltyadd')) !!}
{{ Form::text('name',$user->name, array('required', 'placeholder'=>'Postcode','class'=>'' )) }}
{{ Form::email('email', $user->email, array('required', 'placeholder'=>'Email ID*' )) }}
{{ Form::text('mobile',$mobile, array('required', 'placeholder'=>'Mobile No','class'=>'' )) }}
{!! Form::submit('Update!!',array('class'=>'btn btn-primary')) !!}
{!! Form::close() !!}

Wallet Balance

Wallet : {{ $wallet }}
@php $first_name_shipping = ''; $last_name_shipping = ''; $email_shipping = ''; $mobile_no_shipping = ''; $country_shipping = ''; $addreess_shipping = ''; $city_shipping = ''; $state_shipping =''; $state_shipping = ''; $postcode_shipping=''; $first_name_billing = ''; $last_name_billing = ''; $email_billing = ''; $mobile_no_billing = ''; $country_billing = ''; $addreess_billing = ''; $city_billing = ''; $state_billing = ''; $postcode_billing = ''; if(isset($usermeta)) { if(isset($usermeta->shipping_address) && $usermeta->shipping_address!='') { $shipping_data = json_decode($usermeta->shipping_address); $first_name_shipping = $shipping_data->first_name_shipping; $last_name_shipping = $shipping_data->last_name_shipping; $email_shipping = $shipping_data->email_shipping; $mobile_no_shipping = $shipping_data->mobile_no_shipping; $country_shipping = $shipping_data->country_shipping; $addreess_shipping = $shipping_data->addreess_shipping; $city_shipping = $shipping_data->city_shipping; $state_shipping = $shipping_data->state_shipping; $postcode_shipping = $shipping_data->postcode_shipping; } if(isset($usermeta->billing_address) && $usermeta->billing_address!='') { $billing_data = json_decode($usermeta->billing_address); $first_name_billing = $billing_data->first_name_billing; $last_name_billing = $billing_data->last_name_billing; $email_billing = $billing_data->email_billing; $mobile_no_billing = $billing_data->mobile_no_billing; $country_billing = $billing_data->country_billing; $addreess_billing = $billing_data->addreess_billing; $city_billing = $billing_data->city_billing; $state_billing = $billing_data->state_billing; $postcode_billing = $billing_data->postcode_billing; } } @endphp {!! Form::open(array('route' => 'meta.update','method'=>'POST', 'id' =>'facaltyadd')) !!}

Shipping Information

{{ Form::text('first_name_shipping', $first_name_shipping, array('required','placeholder'=>'First Name','class'=>'form-control' )) }}
{{ Form::text('last_name_shipping',$last_name_shipping, array('required','placeholder'=>'Last Name','class'=>'form-control' )) }}
{{ Form::email('email_shipping', $email_shipping , array('required', 'placeholder'=>'Email ID*' )) }}
{{ Form::text('mobile_no_shipping',$mobile_no_shipping, array('required', 'placeholder'=>'Mobile No*' )) }}
{{ Form::text('country_shipping',$country_shipping, array('required', 'placeholder'=>'Country','class'=>'form-control' )) }}
{{ Form::text('addreess_shipping',$addreess_shipping, array('required', 'placeholder'=>'Addreess','class'=>'form-control' )) }}
{{ Form::text('city_shipping', $city_shipping, array('required', 'placeholder'=>'City','class'=>'form-control' )) }}
{{ Form::text('state_shipping',$state_shipping, array('required', 'placeholder'=>'State','class'=>'form-control' )) }}
{{ Form::text('postcode_shipping',$postcode_shipping, array('required', 'placeholder'=>'Postcode','class'=>'form-control' )) }}

Billing Information

{{ Form::text('first_name_billing', $first_name_billing , array('required','placeholder'=>'First Name','class'=>'form-control' )) }}
{{ Form::text('last_name_billing', $last_name_billing, array('required','placeholder'=>'Last Name','class'=>'form-control' )) }}
{{ Form::email('email_billing', $email_billing , array('required', 'placeholder'=>'Email ID*' )) }}
{{ Form::text('mobile_no_billing', $mobile_no_billing , array('required', 'placeholder'=>'Mobile No*' )) }}
{{ Form::text('country_billing', $country_billing, array('required', 'placeholder'=>'Country','class'=>'form-control' )) }}
{{ Form::text('addreess_billing', $addreess_billing , array('required', 'placeholder'=>'Addreess','class'=>'form-control' )) }}
{{ Form::text('city_billing', $city_billing , array('required', 'placeholder'=>'City','class'=>'form-control' )) }}
{{ Form::text('state_billing', $state_billing , array('required', 'placeholder'=>'State','class'=>'form-control' )) }}
{{ Form::text('postcode_billing', $postcode_billing , array('required', 'placeholder'=>'Postcode','class'=>'form-control' )) }}
{!! Form::submit('Update!!',array('class'=>'btn btn-primary')) !!}
{!! Form::close() !!}
@endsection