wip
This commit is contained in:
@@ -38,7 +38,11 @@
|
||||
|
||||
@if ($user->portfolios->isEmpty())
|
||||
<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') }}" />
|
||||
|
||||
<x-button label="{{ __('Import / Export Data') }}" class="btn-primary btn-outline mr-6" link="{{ route('import-export') }}" />
|
||||
<span>{{ __('or') }}</span>
|
||||
<x-button label="{{ __('Create your first portfolio!') }}" class="btn-primary ml-6" link="{{ route('portfolio.create') }}" />
|
||||
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ new class extends Component {
|
||||
public function holdings(): Collection
|
||||
{
|
||||
|
||||
// dd(Holding::toSql());
|
||||
$holdings = $this->portfolio
|
||||
->holdings()
|
||||
->withCount(['transactions as num_transactions' => function($query) {
|
||||
|
||||
@@ -29,7 +29,7 @@ new class extends Component {
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
|
||||
$this->success(__('Successfully imported!'));
|
||||
$this->success(__('Successfully imported!'), redirectTo: route('dashboard'));
|
||||
}
|
||||
|
||||
public function downloadTemplate()
|
||||
@@ -58,8 +58,12 @@ new class extends Component {
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="actions">
|
||||
|
||||
<x-forms.action-message class="me-3" on="saved">
|
||||
{{ __('Saved.') }}
|
||||
</x-forms.action-message>
|
||||
|
||||
<x-button type="submit">
|
||||
<x-button type="submit" spinner="import">
|
||||
{{ __('Import') }}
|
||||
</x-button>
|
||||
</x-slot>
|
||||
|
||||
Reference in New Issue
Block a user