|
|
@@ -7,12 +7,33 @@ |
|
|
|
<section class="alerts-pane"><h4>News and Announcements</h4> |
|
|
|
<p>We've just launched. Thanks for joining us.</p> |
|
|
|
</section> |
|
|
|
<section class="recent-pane"><h4>Recent Activity</h4>Recent activity showing last 5 completed orders </section> |
|
|
|
<section class="recent-pane"><h4>Recent Activity</h4> |
|
|
|
<table> |
|
|
|
<thead><th>Date</th><th>Name</th><th>Status</th> <th>Quantity</th></thead> |
|
|
|
<tbody> |
|
|
|
<tr v-bind:key='order.id' v-for='order in orders.slice(0, 10)'> |
|
|
|
<template v-if="order.status != 'pending'"> |
|
|
|
<td>{{order.updated_at}}</td> |
|
|
|
<td>{{order.service.name}}</td> |
|
|
|
<td :class="order.status" |
|
|
|
class="status"><span>{{order.status.charAt(0).toUpperCase() + |
|
|
|
order.status.slice(1)}}</span></td> |
|
|
|
<td>{{order.quantity}}</td> |
|
|
|
</template> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
<div v-else-if="active === '#orders'" id="main"> |
|
|
|
<div class="actions"><a href="#orders/new">New</a></div> |
|
|
|
<section class="pending-pane"> |
|
|
|
<h4>Pending Orders</h4> |
|
|
|
<ul> |
|
|
|
<template v-bind:key='order.id' v-for="order in orders"> |
|
|
|
<li v-if="order.status == 'pending'">{{order.service.name}} - {{order.updated_at}}</li> |
|
|
|
</template> |
|
|
|
</ul> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
</transition> |
|
|
@@ -27,6 +48,6 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return {active: window.location.hash, user: '', |
|
|
|
token: ''}}, |
|
|
|
token: '', orders: ''}}, |
|
|
|
} |
|
|
|
</script> |