Mix together the maple syrup and brown sugar in a small bowl. Halve the bacon slices, make sure they are separated from each other, and place them all in a large plastic bag. Pour the syrup mixture over the bacon and seal. Place the bag in the fridge to marinate for 1 hour.
Heat oven to 400 degrees F. After bacon has marinated, line a baking sheet with aluminum foil and top that with a wire rack. Arrange 6 small slices of bacon into a weave, repeating with the remaining bacon, or you can cook the pieces normally. Bake for about 20 minutes, or until desired crispiness. Remove bacon but keep oven on.
While the bacon is cooking, slice the tomatoes and avocados.
Cook the eggs over medium.
On another baking sheet, arrange the 8 slices of bread, 4 with sliced mozzarella cheese, and 4 with a layer of pesto. Bake just until cheese begins to melt, about 5 minutes.
Arrange sandwiches with a slice of cheese bread topped with tomato, bacon, egg, and avocado, topped with a pesto slice.
This recipe makes 4 sandwiches, you can adjust according to how many you actually need.