File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Admin/src/Resources/views/settings/data-transfer/imports Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class="mt-1 cursor-pointer text-sm text-brandColor transition-all hover:underlin
121
121
id =" uploaded-file-link"
122
122
class =" mt-1 cursor-pointer text-sm text-brandColor transition-all hover:underline"
123
123
>
124
- {{ $import ?-> file_path } }
124
+ {{ $import ?-> file_name } }
125
125
</a >
126
126
@endif
127
127
</div >
Original file line number Diff line number Diff line change @@ -52,4 +52,12 @@ public function batches(): HasMany
52
52
{
53
53
return $ this ->hasMany (ImportBatchProxy::modelClass ());
54
54
}
55
+
56
+ /**
57
+ * Get the file name.
58
+ */
59
+ public function getFileNameAttribute (): string
60
+ {
61
+ return preg_replace ('/^.*?\/\d+-/ ' , '' , $ this ->file_path );
62
+ }
55
63
}
You can’t perform that action at this time.
0 commit comments