+
\ No newline at end of file
diff --git a/resources/views/livewire/manage-portfolio-form.blade.php b/resources/views/livewire/manage-portfolio-form.blade.php
index e70631d..5899952 100644
--- a/resources/views/livewire/manage-portfolio-form.blade.php
+++ b/resources/views/livewire/manage-portfolio-form.blade.php
@@ -69,7 +69,7 @@ new class extends Component {
-
+
@if (isset($this->portfolio))
@livewire('share-portfolio-form', ['portfolio' => $portfolio])
diff --git a/resources/views/livewire/share-portfolio-form.blade.php b/resources/views/livewire/share-portfolio-form.blade.php
index 2e6d136..f80b021 100644
--- a/resources/views/livewire/share-portfolio-form.blade.php
+++ b/resources/views/livewire/share-portfolio-form.blade.php
@@ -182,6 +182,7 @@ new class extends Component {
class="btn-sm btn-ghost btn-circle"
wire:click="deleteUser('{{ $user->id }}')"
spinner="deleteUser('{{ $user->id }}')"
+ title="{{ __('Remove Access') }}"
>
diff --git a/resources/views/portfolio/show.blade.php b/resources/views/portfolio/show.blade.php
index b2979c9..261871a 100644
--- a/resources/views/portfolio/show.blade.php
+++ b/resources/views/portfolio/show.blade.php
@@ -153,6 +153,30 @@
--}}
+ @livewire('ai-chat-window', [
+ 'chatable' => $portfolio,
+ 'suggested_prompts' => [
+ [
+ 'text' => 'Which holding is most successful?',
+ 'value' => 'Which holding is most successful in this portfolio?',
+ ],
+ [
+ 'text' => 'Should I diversify more?',
+ 'value' => 'Is my portfolio diverse enough?',
+ ]
+ ],
+ 'system_prompt' => "
+ You are an investment portfolio assistant providing advice to an investor. Use the following information to provide relevant recommendations. Use the words 'likely' or 'may' instead of concrete statements (except for obvious statements of fact or common sense):
+
+ The investor has the following holdings in this portfolio:
+
+ {$formattedHoldings}
+
+ Based on the current market data, quantity owned, and average cost basis, you can determine the performance of any holding.
+
+ Below is the question from the investor. Considering these facts, provide a concise response to the following question (give a direct response). Limit your response to no more than 75 words and consider using a common decision framework:"
+ ])
+
\ No newline at end of file