<?php

/**
 * PaintOps - Profit By Job Classification
 *
 * Breaks profit down by Job Classification (Repaint, New Construction,
 * Realtor, Property Management/HOA, Insurance/Storm Restoration, etc.,
 * see paintops_job_classifications() in paintops.php, editable under
 * PaintOps > Business). This is what makes the Job Classification field
 * on the job form actually feed into a report, rather than being a
 * label with no downstream use.
 *
 * Each classification row can be expanded to drill into its own Category
 * breakdown (e.g. under "Repaint": "Residential Painting", "Commercial
 * Painting"), and each Category row can be expanded one level further
 * into its own Work Areas breakdown (Interior / Exterior / Interior and
 * Exterior). Three tiers total: Classification -> Category -> Work
 * Areas. This used to be a single combined Category+Work-Area row; Mike
 * asked for Work Areas to be split out into its own sub-level since a
 * given Category can appear under more than one Work Area split.
 *
 * Same Pro-gating / wp.org-stripping convention as
 * job-profit-hour-rankings.php: real logic lives inside a direct
 * paintops_fs()->is__premium_only() call so Freemius's deployment
 * preprocessor can physically remove it from the free wp.org build.
 *
 * Usage:
 * require_once __DIR__ . '/job-profit-by-classification.php';
 * echo wp_kses(paintops_render_profit_by_classification(), paintops_kses_allowed_html(), paintops_kses_protocols());
 */
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
// end paintops_fs()->is__premium_only()
if ( !function_exists( 'paintops_render_profit_by_classification' ) ) {
    function paintops_render_profit_by_classification() : string {
        // The report exists only in the premium build; the free build's
        // UI never links here.
        if ( !function_exists( 'paintops_pro_code_present' ) ) {
            ob_start();
            if ( function_exists( 'paintops_render_pro_pointer' ) ) {
                paintops_render_pro_pointer( 'Profit By Job Classification' );
            }
            return ob_get_clean();
        }
        return '';
        // end: is__premium_only wp.org-stripped block
    }

}