From ee88468c969fe2aec19f4cdc2b0b677227f05da2 Mon Sep 17 00:00:00 2001 From: Navneet Sharma Date: Tue, 8 Feb 2022 17:29:39 +0530 Subject: [PATCH] Added the products route to the sales route in the dashboard --- .../sales/[productId]/__error.svelte | 73 ++++++++ .../sales/[productId]/__layout.svelte | 136 ++++++++++++++ .../customers/[customerId]/index.svelte | 0 .../[productId]/customers/__layout.svelte | 3 + .../sales/[productId]/customers/index.svelte | 0 .../sales/[productId]/deposits/index.svelte | 3 + .../dashboard/sales/[productId]/index.svelte | 8 + .../invoices/[invoice]/__error.svelte | 73 ++++++++ .../invoices/[invoice]/index.svelte | 64 +++++++ .../sales/[productId]/invoices/__error.svelte | 73 ++++++++ .../[productId]/invoices/__layout.svelte | 168 ++++++++++++++++++ .../sales/[productId]/invoices/index.svelte | 5 + .../sales/[productId]/overview/index.svelte | 9 + .../[subscriptionId]/index.svelte | 0 .../[productId]/subscriptions/__layout.svelte | 3 + .../[productId]/subscriptions/index.svelte | 0 src/routes/dashboard/sales/__layout.svelte | 3 + 17 files changed, 621 insertions(+) create mode 100644 src/routes/dashboard/sales/[productId]/__error.svelte create mode 100644 src/routes/dashboard/sales/[productId]/__layout.svelte create mode 100644 src/routes/dashboard/sales/[productId]/customers/[customerId]/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/customers/__layout.svelte create mode 100644 src/routes/dashboard/sales/[productId]/customers/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/deposits/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/invoices/[invoice]/__error.svelte create mode 100644 src/routes/dashboard/sales/[productId]/invoices/[invoice]/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/invoices/__error.svelte create mode 100644 src/routes/dashboard/sales/[productId]/invoices/__layout.svelte create mode 100644 src/routes/dashboard/sales/[productId]/invoices/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/overview/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/subscriptions/[subscriptionId]/index.svelte create mode 100644 src/routes/dashboard/sales/[productId]/subscriptions/__layout.svelte create mode 100644 src/routes/dashboard/sales/[productId]/subscriptions/index.svelte create mode 100644 src/routes/dashboard/sales/__layout.svelte diff --git a/src/routes/dashboard/sales/[productId]/__error.svelte b/src/routes/dashboard/sales/[productId]/__error.svelte new file mode 100644 index 0000000..f4b3346 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/__error.svelte @@ -0,0 +1,73 @@ + + + + + + + + + + + +
+
+ +

+ {status} +

+ +

+ {error.name} +

+ + {#if dev && error.stack} +
 {error.message} 
+ {/if} + +
+
+ diff --git a/src/routes/dashboard/sales/[productId]/__layout.svelte b/src/routes/dashboard/sales/[productId]/__layout.svelte new file mode 100644 index 0000000..42706d0 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/__layout.svelte @@ -0,0 +1,136 @@ + + + + +
+
+

Sales of product {productId}

+
+
+
+ +
+
+ +
+
+ +
diff --git a/src/routes/dashboard/sales/[productId]/customers/[customerId]/index.svelte b/src/routes/dashboard/sales/[productId]/customers/[customerId]/index.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/dashboard/sales/[productId]/customers/__layout.svelte b/src/routes/dashboard/sales/[productId]/customers/__layout.svelte new file mode 100644 index 0000000..f00ab00 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/customers/__layout.svelte @@ -0,0 +1,3 @@ +
+

Customers

+
diff --git a/src/routes/dashboard/sales/[productId]/customers/index.svelte b/src/routes/dashboard/sales/[productId]/customers/index.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/dashboard/sales/[productId]/deposits/index.svelte b/src/routes/dashboard/sales/[productId]/deposits/index.svelte new file mode 100644 index 0000000..b04e906 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/deposits/index.svelte @@ -0,0 +1,3 @@ +
+

Deposits

+
diff --git a/src/routes/dashboard/sales/[productId]/index.svelte b/src/routes/dashboard/sales/[productId]/index.svelte new file mode 100644 index 0000000..ffca4e9 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/index.svelte @@ -0,0 +1,8 @@ + diff --git a/src/routes/dashboard/sales/[productId]/invoices/[invoice]/__error.svelte b/src/routes/dashboard/sales/[productId]/invoices/[invoice]/__error.svelte new file mode 100644 index 0000000..f4b3346 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/invoices/[invoice]/__error.svelte @@ -0,0 +1,73 @@ + + + + + + + + + + + +
+
+ +

+ {status} +

+ +

+ {error.name} +

+ + {#if dev && error.stack} +
 {error.message} 
+ {/if} + +
+
+ diff --git a/src/routes/dashboard/sales/[productId]/invoices/[invoice]/index.svelte b/src/routes/dashboard/sales/[productId]/invoices/[invoice]/index.svelte new file mode 100644 index 0000000..9cb5801 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/invoices/[invoice]/index.svelte @@ -0,0 +1,64 @@ + + + + +
+
+
+ Stankonia +
+
+ $8000 +
+
+ DUE TODAY + INVOICED 10/31/2020 +
+
+
+ Invoice + + #{invoice} + +
+
+
+
Pro Plan
+
$6000
+
+
+
Custom
+
$2000
+
+
+
Net Total
+
$8000
+
+
+
diff --git a/src/routes/dashboard/sales/[productId]/invoices/__error.svelte b/src/routes/dashboard/sales/[productId]/invoices/__error.svelte new file mode 100644 index 0000000..f4b3346 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/invoices/__error.svelte @@ -0,0 +1,73 @@ + + + + + + + + + + + +
+
+ +

+ {status} +

+ +

+ {error.name} +

+ + {#if dev && error.stack} +
 {error.message} 
+ {/if} + +
+
+ diff --git a/src/routes/dashboard/sales/[productId]/invoices/__layout.svelte b/src/routes/dashboard/sales/[productId]/invoices/__layout.svelte new file mode 100644 index 0000000..a3b241b --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/invoices/__layout.svelte @@ -0,0 +1,168 @@ + + +
+
+
+
+ Overdue +
+
+

$10, 800

+
+
+
+
+
+
+
+
+
+
+
+ Due soon +
+
+

$10, 800

+
+
+
+
+
+

Invoice List

+
+
+
+ {#each invoices as invoice, index (invoice.id)} + +
+
{invoice.city}
+

{invoice.year}

+
+
+
${invoice.total}
+

{invoice.status}

+
+
+ {/each} +
+
+ +
+
+
+
diff --git a/src/routes/dashboard/sales/[productId]/invoices/index.svelte b/src/routes/dashboard/sales/[productId]/invoices/index.svelte new file mode 100644 index 0000000..5259f63 --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/invoices/index.svelte @@ -0,0 +1,5 @@ +
+
+
Graph
+
+
diff --git a/src/routes/dashboard/sales/[productId]/overview/index.svelte b/src/routes/dashboard/sales/[productId]/overview/index.svelte new file mode 100644 index 0000000..47d407b --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/overview/index.svelte @@ -0,0 +1,9 @@ + + +
+
+ +
+
diff --git a/src/routes/dashboard/sales/[productId]/subscriptions/[subscriptionId]/index.svelte b/src/routes/dashboard/sales/[productId]/subscriptions/[subscriptionId]/index.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/dashboard/sales/[productId]/subscriptions/__layout.svelte b/src/routes/dashboard/sales/[productId]/subscriptions/__layout.svelte new file mode 100644 index 0000000..509d98c --- /dev/null +++ b/src/routes/dashboard/sales/[productId]/subscriptions/__layout.svelte @@ -0,0 +1,3 @@ +
+

Subscriptions

+
diff --git a/src/routes/dashboard/sales/[productId]/subscriptions/index.svelte b/src/routes/dashboard/sales/[productId]/subscriptions/index.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/routes/dashboard/sales/__layout.svelte b/src/routes/dashboard/sales/__layout.svelte new file mode 100644 index 0000000..0b3622e --- /dev/null +++ b/src/routes/dashboard/sales/__layout.svelte @@ -0,0 +1,3 @@ +
+ +