Good tips above.
But I see in your layout you don't care about your resources while you are trying to protect your HQ, but if they reach your HQ, you already lost. Doesn't make sense protect the HQ. There are only 2 kind of defenses in PvP: win the defense at any cost or protect more resources as possible, what always means lose the defense.
But to win defenses you need to upgrade your shields, turrets, walls, traps to the same level of your HQ, turn on your Guard Reserve and defensive equipments in Armory, and fill your SC with Jumps/Snipers/Bikes level 10 because when you upgrade your buildings you raise your base strength and start to be available for attack by players above your level.
I like top north layouts, they are the best for Heroic Defenses, in my opinion the only defense worths to play for. There's nothing you can do to defend your base against a full jump loadout attack, just keep your storage buildings always empty to get away of looters. And win defenses only will give medals, and you can't buy anything with medals. I always say better lose the first defense and get some protection than win one, two, or three defenses in a row and keep losing resources at each one.
If you have Guard Reserve troops, protect the buildings, put barracks and factories inside the base, under shields and surrounded by walls. Not everyone has Jumps or their skins at level 8, so, they will need to blow your walls to come in. Upgrade and buff your walls in Armory, and keep only 2 mortars in oposite sides until you get HQ level 9 and change for sonics. Guard Reserve doesn't prevent you to be defeated but can delay an attack and save 1 or 2 stars, and some resources if you want to protect them. If you have luck and level 10 troops in your SC, you can win the defense.
Let your SC in the middle of the base, in a way to prevent the attacker to bait your troops and HQ close to the SC, but move your Deka to inside the base. Don't let any space inside where they can deploy troops and bait your troops. Good luck!
A Windows survivor now training players and helping squads through the Galaxy!
Imperial HQ10 in "BombSquad18" (Level 49 squad)
Rebel HQ10 / HQ8 in "Ewok_revenge" (Level 50 squad)