add create portfolio call to action

and add helptext to wishlist
This commit is contained in:
hackerESQ
2024-08-07 13:06:40 -05:00
parent fa7711ec31
commit ee7adc941f
2 changed files with 17 additions and 1 deletions
+12
View File
@@ -39,6 +39,12 @@
<div class="mt-6 grid md:grid-cols-7 gap-5">
<x-ib-card title="{{ __('My portfolios') }}" class="md:col-span-4">
@if (empty($user->portfolos))
<div class="flex justify-center items-center h-[100px] mb-8">
<x-button label="{{ __('Create your first portfolio!') }}" class="btn-primary" link="{{ route('portfolio.create') }}" />
</div>
@endif
@foreach($user->portfolios as $portfolio)
<x-list-item no-separator :item="$portfolio" link="{{ route('portfolio.show', ['portfolio' => $portfolio->id]) }}">
@@ -53,6 +59,7 @@
</x-ib-card>
@if (!empty($user->portfolos))
<x-ib-card title="{{ __('Top performers') }}" class="md:col-span-3">
@php
@@ -64,7 +71,9 @@
@endforeach
</x-ib-card>
@endif
@if (!empty($user->portfolos))
<x-ib-card title="{{ __('Top headlines') }}" class="md:col-span-3">
@php
@@ -76,7 +85,9 @@
@endforeach
</x-ib-card>
@endif
@if (!empty($user->portfolos))
<x-ib-card title="{{ __('Recent activity') }}" class="md:col-span-4">
@php
@@ -88,6 +99,7 @@
@endforeach
</x-ib-card>
@endif
</div>
@@ -83,7 +83,11 @@ new class extends Component {
<x-textarea label="{{ __('Notes') }}" wire:model="notes" rows="5" />
<x-toggle label="{{ __('Wishlist') }}" wire:model="wishlist" />
<x-toggle label="{{ __('Wishlist') }}" wire:model="wishlist">
<x-slot:hint>
{{ __('Treat this portfolio as a "wishlist" (holdings will be excluded from realized gains, unrealized gains, and dividends)') }}
</x-slot:hint>
</x-toggle>
<x-slot:actions>
@if ($portfolio)