fix:update dividend options to manage holding
This commit is contained in:
+4
-4
@@ -122,10 +122,10 @@
|
|||||||
"Realized Gain/Loss": "Realized Gain/Loss",
|
"Realized Gain/Loss": "Realized Gain/Loss",
|
||||||
"Dividends Earned": "Dividends Earned",
|
"Dividends Earned": "Dividends Earned",
|
||||||
"Dividends": "Dividends",
|
"Dividends": "Dividends",
|
||||||
"Dividend options": "Dividend options",
|
"Holding options": "Holding options",
|
||||||
"Dividend options saved": "Dividend options saved",
|
"Holding options saved": "Holding options saved",
|
||||||
"Reinvest dividends": "Reinvest dividends",
|
"Reinvest dividends": "Reinvest dividends",
|
||||||
"Automatically generate buy transactions for any dividends earned.": "Automatically generate buy transactions for any dividends earned.",
|
"Automatically generate buy transactions for any dividends earned": "Automatically generate buy transactions for any dividends earned",
|
||||||
"Split": "Split",
|
"Split": "Split",
|
||||||
"Splits": "Splits",
|
"Splits": "Splits",
|
||||||
"No splits for :symbol yet": "No splits for :symbol yet",
|
"No splits for :symbol yet": "No splits for :symbol yet",
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
"Performance": "Performance",
|
"Performance": "Performance",
|
||||||
"Reset chart": "Reset chart",
|
"Reset chart": "Reset chart",
|
||||||
"Choose time period": "Choose time period",
|
"Choose time period": "Choose time period",
|
||||||
"Edit Portfolio": "Edit Portfolio",
|
"Manage Portfolio": "Manage Portfolio",
|
||||||
"Create Transaction": "Create Transaction",
|
"Create Transaction": "Create Transaction",
|
||||||
"Holding": "Holding",
|
"Holding": "Holding",
|
||||||
"Holdings": "Holdings",
|
"Holdings": "Holdings",
|
||||||
|
|||||||
+4
-4
@@ -122,10 +122,10 @@
|
|||||||
"Realized Gain/Loss": "Ganancia/Pérdida Realizada",
|
"Realized Gain/Loss": "Ganancia/Pérdida Realizada",
|
||||||
"Dividends Earned": "Dividendos Ganados",
|
"Dividends Earned": "Dividendos Ganados",
|
||||||
"Dividends": "Dividendos",
|
"Dividends": "Dividendos",
|
||||||
"Dividend options": "Opciones de dividendos",
|
"Holding options": "Opciones de participaciones",
|
||||||
"Dividend options saved": "Opciones de dividendos guardadas",
|
"Holding options saved": "Opciones de participaciones guardadas",
|
||||||
"Reinvest dividends": "Reinvertir dividendos",
|
"Reinvest dividends": "Reinvertir dividendos",
|
||||||
"Automatically generate buy transactions for any dividends earned.": "Genere automáticamente transacciones de compra para cualquier dividendo obtenido.",
|
"Automatically generate buy transactions for any dividends earned": "Genere automáticamente transacciones de compra para cualquier dividendo obtenido",
|
||||||
"Split": "Division",
|
"Split": "Division",
|
||||||
"Splits": "Divisiones",
|
"Splits": "Divisiones",
|
||||||
"No splits for :symbol yet": "No hay divisiones para :symbol",
|
"No splits for :symbol yet": "No hay divisiones para :symbol",
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
"Performance": "Desempeño",
|
"Performance": "Desempeño",
|
||||||
"Reset chart": "Restablecer gráfico",
|
"Reset chart": "Restablecer gráfico",
|
||||||
"Choose time period": "Elegir período de tiempo",
|
"Choose time period": "Elegir período de tiempo",
|
||||||
"Edit Portfolio": "Editar Portafolio",
|
"Manage Portfolio": "Editar Portafolio",
|
||||||
"Create Transaction": "Crear Transacción",
|
"Create Transaction": "Crear Transacción",
|
||||||
"Holding": "Tenencia",
|
"Holding": "Tenencia",
|
||||||
"Holdings": "Tenencias",
|
"Holdings": "Tenencias",
|
||||||
|
|||||||
@@ -12,19 +12,37 @@
|
|||||||
|
|
||||||
</x-ib-modal>
|
</x-ib-modal>
|
||||||
|
|
||||||
|
<x-ib-modal
|
||||||
|
key="holding-options"
|
||||||
|
title="{{ __('Holding options') }}"
|
||||||
|
>
|
||||||
|
@livewire('holding-options-form', [
|
||||||
|
'holding' => $holding
|
||||||
|
])
|
||||||
|
|
||||||
|
</x-ib-modal>
|
||||||
|
|
||||||
<x-ib-toolbar>
|
<x-ib-toolbar>
|
||||||
<x-slot:title>
|
<x-slot:title>
|
||||||
<a href="{{ route('portfolio.show', ['portfolio' => $portfolio->id]) }}" title="{{ __('Portfolio') }}">
|
<a href="{{ route('portfolio.show', ['portfolio' => $portfolio->id]) }}" title="{{ __('Portfolio') }}">
|
||||||
{{ $portfolio->title }}
|
{{ $portfolio->title }}
|
||||||
</a> » <span title="{{ __('Holding') }}">{{ $holding->market_data->symbol }}</span>
|
</a> » <span title="{{ __('Holding') }}">{{ $holding->market_data->symbol }}</span>
|
||||||
|
|
||||||
</x-slot:title>
|
</x-slot:title>
|
||||||
|
|
||||||
|
<x-button
|
||||||
|
title="{{ __('Holding options') }}"
|
||||||
|
icon="o-pencil"
|
||||||
|
class="btn-circle btn-ghost btn-sm text-secondary"
|
||||||
|
@click="$dispatch('toggle-holding-options')"
|
||||||
|
/>
|
||||||
|
|
||||||
<x-ib-flex-spacer />
|
<x-ib-flex-spacer />
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<x-button
|
<x-button
|
||||||
label="{{ __('Create Transaction') }}"
|
label="{{ __('Create Transaction') }}"
|
||||||
class="btn-sm btn-primary"
|
class="btn-sm btn-primary whitespace-nowrap"
|
||||||
@click="$dispatch('toggle-create-transaction')"
|
@click="$dispatch('toggle-create-transaction')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -100,30 +118,7 @@
|
|||||||
|
|
||||||
</x-ib-card>
|
</x-ib-card>
|
||||||
|
|
||||||
<x-ib-card class="md:col-span-3">
|
<x-ib-card title="{{ __('Dividends') }}" class="md:col-span-3">
|
||||||
|
|
||||||
<x-slot:title>
|
|
||||||
{{ __('Dividends') }}
|
|
||||||
|
|
||||||
<x-ib-flex-spacer/>
|
|
||||||
|
|
||||||
<x-button
|
|
||||||
title="{{ __('Dividend options') }}"
|
|
||||||
icon="o-ellipsis-vertical"
|
|
||||||
class="btn-circle btn-ghost btn-sm text-secondary"
|
|
||||||
@click="$dispatch('toggle-dividend-options')"
|
|
||||||
/>
|
|
||||||
</x-slot:title>
|
|
||||||
|
|
||||||
<x-ib-modal
|
|
||||||
key="dividend-options"
|
|
||||||
title="{{ __('Dividend options') }}"
|
|
||||||
>
|
|
||||||
@livewire('holding-dividend-options-form', [
|
|
||||||
'holding' => $holding
|
|
||||||
])
|
|
||||||
|
|
||||||
</x-ib-modal>
|
|
||||||
|
|
||||||
@if($holding->dividends->isEmpty())
|
@if($holding->dividends->isEmpty())
|
||||||
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
<div class="flex justify-center items-center h-full pb-10 text-secondary">
|
||||||
|
|||||||
+4
-4
@@ -34,14 +34,14 @@ new class extends Component {
|
|||||||
{
|
{
|
||||||
$this->holding->update($this->validate());
|
$this->holding->update($this->validate());
|
||||||
|
|
||||||
$this->success(__('Dividend options saved'));
|
$this->success(__('Holding options saved'));
|
||||||
|
|
||||||
$this->dispatch('toggle-dividend-options');
|
$this->dispatch('toggle-holding-options');
|
||||||
}
|
}
|
||||||
}; ?>
|
}; ?>
|
||||||
|
|
||||||
<div class="" x-data="{ }">
|
<div class="" x-data="{ }"> {{-- grid lg:grid-cols-4 gap-10 --}}
|
||||||
<x-ib-form wire:submit="save" class="">
|
<x-ib-form wire:submit="save" class=""> {{-- col-span-3 --}}
|
||||||
|
|
||||||
<x-toggle
|
<x-toggle
|
||||||
label="{{ __('Reinvest dividends') }}"
|
label="{{ __('Reinvest dividends') }}"
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<x-ib-drawer
|
<x-ib-drawer
|
||||||
key="manage-portfolio"
|
key="manage-portfolio"
|
||||||
title="{{ $portfolio->title }}"
|
title="{{ __('Manage Portfolio') }}"
|
||||||
>
|
>
|
||||||
@livewire('manage-portfolio-form', [
|
@livewire('manage-portfolio-form', [
|
||||||
'portfolio' => $portfolio,
|
'portfolio' => $portfolio,
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<x-button
|
<x-button
|
||||||
title="{{ __('Edit Portfolio') }}"
|
title="{{ __('Manage Portfolio') }}"
|
||||||
icon="o-pencil"
|
icon="o-pencil"
|
||||||
class="btn-circle btn-ghost btn-sm text-secondary"
|
class="btn-circle btn-ghost btn-sm text-secondary"
|
||||||
@click="$dispatch('toggle-manage-portfolio')"
|
@click="$dispatch('toggle-manage-portfolio')"
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<x-button
|
<x-button
|
||||||
label="{{ __('Create Transaction') }}"
|
label="{{ __('Create Transaction') }}"
|
||||||
class="btn-sm btn-primary"
|
class="btn-sm btn-primary whitespace-nowrap"
|
||||||
@click="$dispatch('toggle-create-transaction')"
|
@click="$dispatch('toggle-create-transaction')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<x-button
|
<x-button
|
||||||
label="{{ __('Create Transaction') }}"
|
label="{{ __('Create Transaction') }}"
|
||||||
class="btn-sm btn-primary"
|
class="btn-sm btn-primary whitespace-nowrap "
|
||||||
@click="$dispatch('toggle-create-transaction')"
|
@click="$dispatch('toggle-create-transaction')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user