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