Text this: Dynamical system analysis for extended f(P) gravity coupled with scalar field