The schematic confirms by worst suspicion. The circuit seems to be intended to work with mains input voltage and safe insulation.
You have < 0.5 mm clearance where you need 3 to 6 mm, depending on the applied safety standard, and very thin tracks for currents of several amperes. Wrong pin assignment of some components (MOSFET, schottky rectifier) is a minor problem in this regard.
Starting over!
- review requirements for PCB track width and clearance for different current and voltage levels
- consider double/reinforced insulation between mains and low voltage circuits
- define net classes and design rules according to this requirements
- double check the pin assignment of self defined components
- think about a placement topology that allows to keep the clearance between primary and secondary circuit and sufficient track widths (the transformer e.g. has to be rotated), the mains input connected must be moved to the left side
- study the layout of commercial power supplies or reference designs from semiconductor manufacturers. They can be expected to keep to safety rules (with the exception of some cheap chinese devices).