Something went wrong. Try again.
An E-Commerce Website built using Node.js, Express, Express Generator, MongoDB, and HandleBars Template Engine. Scope - Single Admin/Vendor…
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556<section> <div class="container mt-5">
<table class="table"> <thead> <tr> <th scope="col">SI No:</th> <th scope="col">Date</th> <th scope="col">Address</th> {{!-- <th scope="col">PIN Code</th> --}} <th scope="col">Mobile</th> <th scope="col">Amount</th> <th scope="col">Payment</th> <th scope="col">Status</th>
</tr> </thead> <tbody> {{#each orders}} <tr> <td class="count"></td> <td>{{this.date}}</td> <td>{{this.deliveryDetails.address}}, {{this.deliveryDetails.pincode}}</td> {{!-- <td>{{this.deliveryDetails.pincode}}</td> --}} <td>{{this.deliveryDetails.mobile}}</td> <td>{{this.totalAmount}}</td> <td>{{this.paymentMethod}}</td> <td>{{this.status}}</td>
<td><a class="btn btn-primary" href="/view-order-products/{{this._id}}">View Products</a></td>
</tr> {{/each}}
</tbody> </table>
</div></section>
<script> function dateConversion(x) { return x.toLocaleDateString() }</script>
<style> table { counter-reset: section; }
.count:before { counter-increment: section; content: counter(section); }</style>