Custom Post-Type not in admin menu

Your capability type is not valid. I would remove the code below if you can. WordPress auto generates the capability_type.

        "capability_type" => array(
            strtolower($s),
            strtolower($m)
        ),

Check out the documentation for capability_type. https://codex.wordpress.org/Function_Reference/register_post_type