adds help text to dividend and split dates

This commit is contained in:
hackerESQ
2024-09-05 20:41:07 -05:00
parent c8467b94ce
commit 95222df471
7 changed files with 19 additions and 13 deletions
+4 -2
View File
@@ -117,6 +117,7 @@
"Dividends Earned": "Dividends Earned",
"Split": "Split",
"Splits": "Splits",
"Distribution Date": "Distribution Date",
"My portfolios": "My portfolios",
"Create your first portfolio!": "Create your first portfolio!",
"Wishlist": "Wishlist",
@@ -145,9 +146,10 @@
"Market Cap": "Market Cap",
"Book Value": "Book Value",
"Dividend Yield": "Dividend Yield",
"Last Dividend Date": "Last Dividend Date",
"Last Dividend Paid": "Last Dividend Paid",
"Ex Dividend Date": "Ex Dividend Date",
"Number of Transactions": "Number of Transactions",
"Market Data Age": "Market Data Age",
"Last Refreshed": "Last Refreshed",
"Portfolio updated": "Portfolio updated",
"Portfolio created": "Portfolio created",
"Portfolio deleted": "Portfolio deleted",
+4 -2
View File
@@ -117,6 +117,7 @@
"Dividends Earned": "Dividendos Ganados",
"Split": "Division",
"Splits": "Divisiones",
"Distribution Date": "Fecha del Division",
"My portfolios": "Mis portafolios",
"Create your first portfolio!": "¡Crea tu primer portafolio!",
"Wishlist": "Lista de deseos",
@@ -145,9 +146,10 @@
"Market Cap": "Cap de mercado",
"Book Value": "Valor contable",
"Dividend Yield": "Rendimiento por dividendo",
"Last Dividend Date": "Fecha del último dividendo",
"Last Dividend Paid": "Fecha del último dividendo",
"Ex Dividend Date": "Fecha del ex dividendo",
"Number of Transactions": "Número de Transacciones",
"Market Data Age": "Antigüedad de los Datos del Mercado",
"Last Refreshed": "Última fecha de actualización ",
"Portfolio updated": "Portafolio actualizado",
"Portfolio created": "Portafolio creado",
"Portfolio deleted": "Portafolio eliminado",
+3 -3
View File
@@ -84,8 +84,8 @@
</p>
<p>
<span class="font-bold">{{ __('Last Dividend Date') }}: </span>
{{ $holding->market_data?->last_dividend_date?->format('F d, Y') ?? 'Never' }}
<span class="font-bold">{{ __('Last Dividend Paid') }}: </span>
{{ $holding->market_data?->last_dividend_date?->format('F d, Y') ?? '' }}
</p>
</x-ib-card>
@@ -117,7 +117,7 @@
</x-slot:value>
<x-slot:sub-value>
{{ $split->date->format('F d, Y') }}
<span title="{{ __('Distribution Date') }}">{{ $split->date->format('F d, Y') }}</span>
</x-slot:sub-value>
</x-list-item>
@@ -33,7 +33,7 @@ new class extends Component {
</x-slot:value>
<x-slot:sub-value>
{{ $dividend->date->format('F d, Y') }}
<span title="{{ __('Ex Dividend Date') }}">{{ $dividend->date->format('F d, Y') }}</span>
</x-slot:sub-value>
</x-list-item>
@@ -52,8 +52,10 @@ new class extends Component {
{{ Number::currency($holding->dividends_earned ?? 0) }}
</p>
<p class="pt-2 text-sm">
{{ __('Market Data Age') }}:
{{ \Carbon\Carbon::parse($holding->market_data->updated_at)->diffForHumans() }}
<p class="pt-2 text-sm" title="{{ \Carbon\Carbon::parse($holding->market_data->updated_at)->toIso8601String() }}">
{{ __('Last Refreshed') }}:
{{ !is_null($holding->market_data->updated_at)
? \Carbon\Carbon::parse($holding->market_data->updated_at)->diffForHumans()
: '' }}
</p>
</div>
@@ -32,7 +32,7 @@ new class extends Component {
['key' => 'market_data_fifty_two_week_low', 'label' => __('52 week low')],
['key' => 'market_data_fifty_two_week_high', 'label' => __('52 week high')],
['key' => 'num_transactions', 'label' => __('Number of Transactions')],
['key' => 'market_data_updated_at', 'label' => __('Market Data Age')],
['key' => 'market_data_updated_at', 'label' => __('Last Refreshed')],
];
}
@@ -71,7 +71,7 @@ new class extends Component {
<x-loading x-show="loading" x-cloak class="text-gray-400 ml-2" />
</x-slot:value>
<x-slot:sub-value>
{{ $transaction->date->format('F j, Y') }}
<span title="{{ __('Transaction Date') }}">{{ $transaction->date->format('F j, Y') }} </span>
</x-slot:sub-value>
</x-list-item>