add empty data help text
This commit is contained in:
@@ -102,18 +102,34 @@
|
||||
|
||||
<x-ib-card title="{{ __('Dividends') }}" class="md:col-span-3">
|
||||
|
||||
@if($holding->dividends->isEmpty())
|
||||
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
||||
|
||||
{{ __('No dividends for :symbol yet', ['symbol' => $holding->symbol]) }}
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
@livewire('holding-dividends-list', ['holding' => $holding])
|
||||
|
||||
</x-ib-card>
|
||||
|
||||
<x-ib-card title="{{ __('Splits') }}" class="md:col-span-3">
|
||||
|
||||
@if($holding->splits->isEmpty())
|
||||
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
||||
|
||||
{{ __('No splits for :symbol yet', ['symbol' => $holding->symbol]) }}
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
@foreach ($holding->splits->take(5) as $split)
|
||||
|
||||
<x-list-item :item="$split">
|
||||
<x-slot:value>
|
||||
|
||||
1:{{ $split->split_amount }}
|
||||
1:{{ $split->split_amount }}
|
||||
|
||||
</x-slot:value>
|
||||
<x-slot:sub-value>
|
||||
|
||||
@@ -85,14 +85,31 @@
|
||||
|
||||
<x-ib-card title="{{ __('Holdings') }}" class="md:col-span-4">
|
||||
|
||||
@livewire('holdings-table', [
|
||||
'portfolio' => $portfolio
|
||||
])
|
||||
@if($portfolio->holdings->isEmpty())
|
||||
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
||||
|
||||
{{ __('Nothing to show here yet') }}
|
||||
</div>
|
||||
|
||||
@else
|
||||
|
||||
@livewire('holdings-table', [
|
||||
'portfolio' => $portfolio
|
||||
])
|
||||
|
||||
@endif
|
||||
</x-ib-card>
|
||||
|
||||
<x-ib-card title="{{ __('Recent activity') }}" class="md:col-span-3">
|
||||
|
||||
@if($portfolio->transactions->isEmpty())
|
||||
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
||||
|
||||
{{ __('Nothing to show here yet') }}
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
@livewire('transactions-list', [
|
||||
'portfolio' => $portfolio,
|
||||
'transactions' => $portfolio->transactions
|
||||
@@ -102,6 +119,14 @@
|
||||
|
||||
<x-ib-card title="{{ __('Top performers') }}" class="md:col-span-3">
|
||||
|
||||
@if($portfolio->holdings->isEmpty())
|
||||
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
||||
|
||||
{{ __('Nothing to show here yet') }}
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
@livewire('top-performers-list', [
|
||||
'holdings' => $portfolio->holdings
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user