We take a look at refactoring our code by simplifying our views and removing any logic from them.
We make use of Spatie's View Model Package to extract any logic from the view into a View Model class.