try to clean the dock connector with some IPA spray because it’s fake charging now , it shows that it’s charging but doesn’t take no power . If it’s still not working you will need to replace this sparepart , but you will need some soldering skills :) iPad mini 2 & mini 3 Lightning Connector
try to clean the bottom holes close to the jackstick hole , otherwise you will need to replace this sparepart iPhone SE (1st Gen) Lightning Connector and Headphone Jack