Your right its melted soap on the bottom.
It takes a good amount of water to dissolve a high-olive liquid soap. If you homogenize the mixture by grating or stick blending, the excess soap will separate as that foamy goop on top. Add water very gradually, especially when there's not much goop left, to get the thickest soap. Borax will allow a little less water if you don't overdo it, but at this point you want to blend and lower the borax concentration so it doesn't cloud.
There are countless ways to make bar soap, but when you post here about liquid soap you have to conform to dogma. Sodium lactate is the only authorized thickener. From now on we are to make liquid soap as per the posted instructions.