validate(); try { $import = (new BackupImport)->import($this->file); } catch (\Throwable $e) { return $this->error($e->getMessage()); } $this->success(__('Successfully imported!'), redirectTo: route('dashboard')); } public function downloadTemplate() { return Excel::download(new BackupExport(empty: true), now()->format('Y_m_d') . '_investbrain_template.xlsx'); } }; ?> {{ __('Import') }} {{ __('Upload or recover your Investbrain portfolio and holdings.') }} {{ __('Download import template.') }}
{{ __('Saved.') }} {{ __('Import') }}