@extends('layouts.app') @section('title_and_meta') User Orders | Wishours @endsection @section('content')
@if($errors->any()) {!! implode('', $errors->all('
:message
')) !!} @endif @if (session('success')) @endif @if (session('error')) @endif
My Orders
@if(count($orders) > 0)
@foreach(@$orders as $order)
@if($order->payment_method == 'Online') @if($order->online_payment_status == 'success' && $order->payment_status == 'PAID') @else @if($order->payment_status == 'PAID') @else @endif @endif @endif @if($order->payment_method == 'COD') @if($order->payment_status == 'PAID') @else @endif @endif @if($order->coupon_code != '') @endif @if($order->points_payment == 1) @endif
Order ID {{ $order->id }}
Ordered Products @foreach($order->orders as $pro) {{ $pro->product_code }}
@endforeach
Payment Method {{ $order->payment_method }}
Payment Status PAID ({{ $order->online_payment_status }}) PAID PENDING ( Failed ) PAID PENDING
Sub Total INR {{ $order->sub_total }}
Discount Code {{ $order->coupon_code }}
Discounted Amount INR {{ $order->coupon_amount }}
Wallet Payment INR - {{ $order->points_discount }}
Grand Total INR {{ $order->grand_total }}
Created On {{ $order->created_at }}
View
@endforeach
@else

Order Not Found !

@endif
@include('partials.sidebar')
@endsection