+ $this->logActivity(ActivityType::IMPORT_CREATE, $import);
+
+ return redirect($import->getUrl());
+ }
+
+ /**
+ * Show a pending import, with a form to allow progressing
+ * with the import process.
+ */
+ public function show(int $id)
+ {
+ // TODO - Test visibility access
+ $import = $this->imports->findVisible($id);
+
+ $this->setPageTitle(trans('entities.import_continue'));
+
+ return view('exports.import-show', [
+ 'import' => $import,
+ ]);
+ }
+
+ /**
+ * Delete an active pending import from the filesystem and database.
+ */
+ public function delete(int $id)
+ {
+ // TODO - Test visibility access
+ $import = $this->imports->findVisible($id);
+ $this->imports->deleteImport($import);
+
+ $this->logActivity(ActivityType::IMPORT_DELETE, $import);
+
+ return redirect('/import');