diff --git a/.env.example b/.env.example index 35db1dd..fa3ff86 100644 --- a/.env.example +++ b/.env.example @@ -63,3 +63,5 @@ AWS_BUCKET= AWS_USE_PATH_STYLE_ENDPOINT=false VITE_APP_NAME="${APP_NAME}" + +OPENAI_API_KEY="your api key" diff --git a/resources/js/pages/Challenge.vue b/resources/js/pages/Challenge.vue index e107389..2609482 100644 --- a/resources/js/pages/Challenge.vue +++ b/resources/js/pages/Challenge.vue @@ -1,9 +1,10 @@ - - -
- Transform this basic data display into a beautiful, interactive financial report! -
-{{ error }}
- -Build a complete, interactive Profit & Loss report using the provided financial data.
-The data is available in reportData - explore it and create a professional financial report interface.
{{ aiError }}
+ + +{{ error }}
+{{ aiResponse }}
+ + +{{ reportData.company.period }}
+{{ reportData.company.basis }} | Actuals to {{ reportData.company.actuals_to }}
+Gross Profit
++ ${{ formatCurrency(keyMetrics.grossProfit) }} +
+Operating Surplus
++ ${{ formatCurrency(keyMetrics.operatingSurplus) }} +
+Net Profit
++ ${{ formatCurrency(keyMetrics.netProfit) }} +
+| + Account + | ++ {{ column.month }} + | +||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
+
+
+ {{ section.name }}
+
+ |
+ + | ||||||||||||
|
+
+
+ {{ subsection.name }}
+
+ |
+ + | ||||||||||||
|
+
+
+ {{ subSubsection.name }}
+
+ |
+ + | ||||||||||||
|
+ {{ item.name }}
+ |
+ + {{ value === 0 ? '-' : formatCurrency(value) }} + | +||||||||||||
|
+ {{ item.name }}
+ |
+ + {{ value === 0 ? '-' : formatCurrency(value) }} + | +||||||||||||
|
+ {{ subsection.gross_profit.name }}
+ |
+ + {{ formatCurrency(value) }} + | +||||||||||||
| + {{ section.total.name }} + | ++ {{ formatCurrency(value) }} + | +||||||||||||
| Summary | +|||||||||||||
| + {{ summaryItem.name }} + | ++ {{ formatCurrency(value) }} + | +||||||||||||
{{ aiError }}
+{{ aiResponse }}
+