Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<section class="wrapper">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>Shopify Orders</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Dashboard</a></li>
                <li><i class="icon_document_alt"></i>Shopify Orders</li>
            </ol>
        </div>
    </div>

    <table class="table table-bordered table-sortable" id="orders">
        <thead>
            <tr>
                <th>Order ID</th>
                <th>Order Date</th>
                <th>Items</th>
                <th>Total Amount</th>
                <th>Payment Status</th>
                <th>Order Status</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        #if($orders.size() > 0)
            #foreach($order in $orders)
            <tr>
                <td>$order.getName()</td>
                <td>$order.getCreatedAt()</td>
                <td>$order.getItems()</td>
                <td>$order.getTotalPriceSet().getShopMoney().getCurrencyCode() $order.getTotalPriceSet().getShopMoney().getAmount()</td>
                <td>$order.getDisplayFinancialStatus()</td>
                <td>$order.getDisplayFulfillmentStatus()</td>
                <td>
                    <button type="button" class="btn btn-primary order-detail" data-id="${order.getId()}">Confirm Order</button>
                </td>
            </tr>
            #end
        #else
            <tr>
                <td colspan="7">No Orders Found</td>
            </tr>
        #end
        </tbody>
    </table>
</section>