updated customer profile. added maps
This commit is contained in:
@@ -44,13 +44,13 @@
|
||||
<!-- row 1 -->
|
||||
|
||||
<tr v-for="oil in deliveries" :key="oil['id']">
|
||||
|
||||
|
||||
<td>{{ oil['id'] }} </td>
|
||||
<router-link :to="{ name: 'customerProfile', params: { id: oil['customer_id'] } }">
|
||||
<td>
|
||||
<div class="hover:text-accent">{{ oil['customer_name'] }} </div>
|
||||
</td>
|
||||
</router-link>
|
||||
</router-link>
|
||||
<td>
|
||||
<div v-if="oil['delivery_status'] == 0">Waiting</div>
|
||||
<div v-else-if="oil['delivery_status'] == 1">cancelled</div>
|
||||
@@ -61,7 +61,7 @@
|
||||
<div v-else-if="oil['delivery_status'] == 10" class="bg-green-600">Finalized</div>
|
||||
<div v-else></div>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
<td>{{ oil['customer_town'] }}</td>
|
||||
@@ -88,7 +88,7 @@
|
||||
<div v-else class="text-red-600">Yes</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<div v-if="oil['payment_type'] == 0">Cash</div>
|
||||
<div v-else-if="oil['payment_type'] == 1">CC</div>
|
||||
<div v-else-if="oil['payment_type'] == 2">Cash/CC</div>
|
||||
@@ -106,11 +106,10 @@
|
||||
<router-link :to="{ name: 'deliveryEdit', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">Edit Delivery</button>
|
||||
</router-link>
|
||||
|
||||
<router-link :to="{ name: 'finalizeTicket', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">Finalize</button>
|
||||
</router-link>
|
||||
<router-link :to="{ name: 'Ticket', params: { id: oil['id'] } }">
|
||||
<router-link :to="{ name: 'finalizeTicket', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-secondary btn-sm">Finalize</button>
|
||||
</router-link>
|
||||
<router-link :to="{ name: 'Ticket', params: { id: oil['id'] } }">
|
||||
<button class="btn btn-success btn-sm">
|
||||
Print Ticket
|
||||
</button>
|
||||
@@ -124,9 +123,10 @@
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<pagination @paginate="getPage" :records="recordsLength" v-model="page" :per-page="50" :options="options" class="mt-10">
|
||||
</pagination>
|
||||
<div class="flex justify-center mb-10"> {{ recordsLength }} items Found</div>
|
||||
<pagination @paginate="getPage" :records="recordsLength" v-model="page" :per-page="50" :options="options"
|
||||
class="mt-10">
|
||||
</pagination>
|
||||
<div class="flex justify-center mb-10"> {{ recordsLength }} items Found</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user