Order History

@if (count($orderData)==0)
No Order History Found
@endif
{{-- */$octr=0;/* --}} @foreach($orderData as $orderDatas) {{-- */$octr=$octr+1/* --}}
Order Number: {{ $orderDatas['order_no'] }} Order Date: {{ date('F d, Y',strtotime($orderDatas['order_date'])) }}
Shipping and Handling: Amount:
{{-- */$subtotal=0; $cart = App\Models\Cart::displayCart($orderDatas['order_no']);/* --}} @foreach($cart as $carts) {{-- */ $total = $carts->quantity * $carts->product_price; $subtotal = $subtotal + $total; /* --}} @endforeach
Product Name Qty Amount Sub Total
@if($carts->image != "") {!! Html::image('upload/products/'.$carts->product_id.'/_75_'.$carts->image) !!} @else {!! Html::image('_front/assets/images/no-image.jpg','',array('width'=>'75')) !!} @endif

{{ $carts->product_name }}
{{ $carts->quantity }} $ {{ number_format($carts->product_price,2) }} $ {{ number_format($total,2) }}
{{-- */ $cartData = App\Models\Cart::displayCheckout($orderDatas['order_no']); /* --}} @if($cartData->coupon_code != "") {{-- */ $subtotal = $subtotal - $cartData->coupon_price; /* --}} @endif @if($cartData->shipping_name != "") {{-- */ $subtotal = $subtotal + $cartData->shipping_amount; /* --}} @endif @if($cartData->tax != "") {{-- */ $subtotal = $subtotal + $cartData->tax; /* --}} @endif
Item(s) Subtotal: $ {{ number_format($subtotal,2) }}
Coupon Code: $ {{ number_format($cartData->coupon_price,2) }}
Shipping & Handling: {{ $cartData->shipping_name }} ${{ number_format($cartData->shipping_amount,2) }}
Sales Tax: $ {{ number_format($cartData->tax,2) }}
Grand Total: $ {{ number_format($subtotal,2) }}
@endforeach
@include('home.includes.sidenav-account')