In this episode, we build out a super simple "All Imports" page to help us keep track of every import we've got. Our goal here is to make it easy to monitor their status, when they were started, and how many records were in each import.
We kick things off by setting up a new route and view for imports, mostly by copying what we already have for exports and then tweaking it to fit our needs. This includes updating the table columns to show just the info that's relevant for imports: when each import started, the record count, and the status. Since we don't need any download functionality, we clean that out for imports.
After wiring everything up with Livewire and making sure we paginate only the current user's imports, we tidy up the blade files and double check the styling so it actually looks good. Once we're happy with the table, we make sure imports is linked in our navigation just like exports. Now you can easily jump between imports, exports, and the main dashboard from anywhere in the app.
That's it for this one! In the next episode, we'll deal with updating the status when an import finishes, and try things out with a bigger data set to see how it all works.