perbaikan dashboard
This commit is contained in:
@@ -3,24 +3,24 @@
|
|||||||
import { supabase } from "$lib/supabaseClient";
|
import { supabase } from "$lib/supabaseClient";
|
||||||
|
|
||||||
type StatKey =
|
type StatKey =
|
||||||
| "purchase_orders"
|
| "vb_purchase_orders"
|
||||||
| "issues"
|
| "vb_issues"
|
||||||
| "vb_villas"
|
| "vb_villas"
|
||||||
| "inventories"
|
| "vb_inventories"
|
||||||
| "projects"
|
| "vb_projects"
|
||||||
| "vendors"
|
| "vb_vendors"
|
||||||
| "vb_employee"
|
| "vb_employee"
|
||||||
| "vb_transport"
|
| "vb_transport"
|
||||||
| "vb_dinning"
|
| "vb_dinning"
|
||||||
| "vb_feedback";
|
| "vb_feedback";
|
||||||
|
|
||||||
let stats: Record<StatKey, number> = {
|
let stats: Record<StatKey, number> = {
|
||||||
purchase_orders: 0,
|
vb_purchase_orders: 0,
|
||||||
issues: 0,
|
vb_issues: 0,
|
||||||
vb_villas: 0,
|
vb_villas: 0,
|
||||||
inventories: 0,
|
vb_inventories: 0,
|
||||||
projects: 0,
|
vb_projects: 0,
|
||||||
vendors: 0,
|
vb_vendors: 0,
|
||||||
vb_employee: 0,
|
vb_employee: 0,
|
||||||
vb_transport: 0,
|
vb_transport: 0,
|
||||||
vb_dinning: 0,
|
vb_dinning: 0,
|
||||||
@@ -35,19 +35,19 @@
|
|||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
label: "Total Issue",
|
label: "Total Issue",
|
||||||
key: "issues",
|
key: "vb_issues",
|
||||||
color: "text-red-600",
|
color: "text-red-600",
|
||||||
icon: "exclamation-triangle",
|
icon: "exclamation-triangle",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Total Project",
|
label: "Total Project",
|
||||||
key: "projects",
|
key: "vb_projects",
|
||||||
color: "text-purple-600",
|
color: "text-purple-600",
|
||||||
icon: "folder",
|
icon: "folder",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Total PO",
|
label: "Total PO",
|
||||||
key: "purchase_orders",
|
key: "vb_purchase_orders",
|
||||||
color: "text-blue-600",
|
color: "text-blue-600",
|
||||||
icon: "document",
|
icon: "document",
|
||||||
},
|
},
|
||||||
@@ -59,13 +59,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Total Inventories",
|
label: "Total Inventories",
|
||||||
key: "inventories",
|
key: "vb_inventories",
|
||||||
color: "text-yellow-600",
|
color: "text-yellow-600",
|
||||||
icon: "cube",
|
icon: "cube",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Total Vendor",
|
label: "Total Vendor",
|
||||||
key: "vendors",
|
key: "vb_vendors",
|
||||||
color: "text-orange-600",
|
color: "text-orange-600",
|
||||||
icon: "building-storefront",
|
icon: "building-storefront",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user