@extends('user-layouts.user_template')
@section('content')
    <div class="content-wrapper" style="min-height: 916px;">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                Orders
                <!-- <small>Control panel</small> -->
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
                <li class="active">Orders</li>
               
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            
                            <h3 class="box-title">
                                Order List
                            </h3>
                        </div>
                        <form role="form" id="frm-create-address-book">
                            <div class="box-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <table class="table table-bordered">
                                            <thead>
                                                <tr>
                                                    <th>Invoice No.</th>
                                                    <th>Total Payment</th>
                                                    <th>Date Created</th>
                                                    <th class="text-center">Action</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                @foreach($array_payment_details as $row)
                                                    <tr>
                                                        <td>{{ $row->InvoiceNumber }} </td>
                                                        <td>{{ $row->Currency }} {{ $row->Total }} </td>
                                                        <td>{{ date('F j, Y g:i a', strtotime($row->DateCreated)) }} </td>
                                                        <td class="text-center">
                                                            <a href="{{ url('user/orders/view') }}/{{ $row->CartKey }}" class="btn btn-default btn-xs">View Details</a>
                                                        </td>
                                                    </tr>
                                                @endforeach
                                            </tbody>
                                       </table>
                                    </div>
                                </div>
                            </div>
                            <div class="box-footer">
                                <!-- <button type="submit" class="btn btn-primary btn-custom-save">Save</button> -->
                            </div>
                        </form>
                    <div>
                </div>
            </div>
        </section>
    <!-- /.content -->
    </div>
@endsection
