-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdash-orders.component.ts
More file actions
99 lines (94 loc) · 2.26 KB
/
Copy pathdash-orders.component.ts
File metadata and controls
99 lines (94 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { Component } from '@angular/core';
import { TableModule } from 'primeng/table';
import { AvatarModule } from 'primeng/avatar';
import { AvatarGroupModule } from 'primeng/avatargroup';
import { NgSwitch, NgSwitchCase } from '@angular/common';
interface Column {
field: string;
header: string;
}
@Component({
selector: 'app-dash-orders',
standalone: true,
imports: [
TableModule,
AvatarModule,
AvatarGroupModule,
NgSwitch,
NgSwitchCase
],
templateUrl: './dash-orders.component.html',
styleUrl: './dash-orders.component.scss'
})
export class DashOrdersComponent {
columns: Column[] = [
{ field: 'order_id', header: 'ID Pedido' },
{ field: 'customer.name', header: 'Cliente' },
{ field: 'product', header: 'Produto' },
{ field: 'amount', header: 'Valor' },
{ field: 'vendor', header: 'Vendedor' },
{ field: 'status', header: 'Status' }
];
orders: any[] = [
{
"order_id": "#VZ2112",
"customer": {
"name": "Alex Smith",
"image_url": "https://via.placeholder.com/40"
},
"product": "Clothes",
"amount": "$109.00",
"vendor": "Zoetic Fashion",
"status": "Paid",
"rating": {
"score": 5.0,
"votes": 61
}
},
{
"order_id": "#VZ2111",
"customer": {
"name": "Jansh Brown",
"image_url": "https://via.placeholder.com/40"
},
"product": "Kitchen Storage",
"amount": "$149.00",
"vendor": "Micro Design",
"status": "Pending",
"rating": {
"score": 4.5,
"votes": 61
}
},
{
"order_id": "#VZ2109",
"customer": {
"name": "Ayaan Bowen",
"image_url": "https://via.placeholder.com/40"
},
"product": "Bike Accessories",
"amount": "$215.00",
"vendor": "Nesta Technologies",
"status": "Paid",
"rating": {
"score": 4.9,
"votes": 89
}
},
{
"order_id": "#VZ2108",
"customer": {
"name": "Prezy Mark",
"image_url": "https://via.placeholder.com/40"
},
"product": "Furniture",
"amount": "$199.00",
"vendor": "Syntyce Solutions",
"status": "Unpaid",
"rating": {
"score": 4.3,
"votes": 47
}
}
];
}