<?php
$account_type_list = ["Auto Loan","Housing Loan","Housing Loan","Property Loan","LOAN AGAINST SHARES/SECURITIES","Personal Loan","Consumer Loan","Gold Loan","EDUCATIONAL LOAN","LOAN TO PROFESSIONAL","Credit Card","LEASING","OVERDRAFT","TWO-WHEELER LOAN","NON-FUNDED CREDIT FACILITY","LOAN AGAINST BANK DEPOSITS","FLEET CARD","Commercial Vehicle Loan","Telco – Wireless","Telco – Broadband","Telco – Landline","GECL Secured","GECL Unsecured","Secured Credit Card","Used Car Loan","Construction Equipment Loan","Tractor Loan","Corporate Credit Card","Kisan Credit Card","Loan on Credit Card","Prime Minister Jaan Dhan Yojana - Overdraft","Mudra Loans – Shishu / Kishor / Tarun","Microfinance – Business Loan","Microfinance – Personal Loan","Microfinance – Housing Loan","Microfinance – Others","Pradhan Mantri Awas Yojana - Credit Link Subsidy Scheme MAY CLSS","P2P Personal Loan","P2P Auto Loan","P2P Education Loan","BUSINESS LOAN – GENERAL","BUSINESS LOAN –PRIORITY SECTOR – SMALL BUSINESS","BUSINESS LOAN –PRIORITY SECTOR – AGRICULTURE","BUSINESS LOAN –PRIORITY SECTOR – OTHERS","BUSINESS NON-FUNDED CREDIT FACILITY – GENERAL","BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – SMALL BUSINESS","BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – AGRICULTURE","BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – OTHERS","BUSINESS LOANS AGAINST BANK DEPOSITS","Staff Loan","Business Loan - Unsecured","Others","Business Loan - Secured","Short Term Personal Loan [Unsecured]","Priority Sector Gold Loan [Secured]","Temporary Overdraft [Unsecured]"];
?>
<div class="panel-body">
    <div class="form-group m-form__group row">
        <label class="col-lg-3 col-form-label">
            Rule Name :
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="rule_name" value="<?php echo isset($current_rule) ? $current_rule : ''; ?>" placeholder="Enter Rule Name">
        </div>
        <label class="col-md-3 col-form-label">
            Thin File:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="All the applications with bureau scores between -1 and 10 are to be considered as thin file and pass, else fail"></i>
        </label>
        <div class="col-lg-3" style="padding-top: 10px;">
            <input type="checkbox" class="form-control m-input" name="thin_file">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Min Net Loan Amount: <span style="color: red;">*</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s loan amount >= Min net loan amount, then the rule has passed, else fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="min_net_loan_amount" value="" placeholder="Enter Min Net Loan Amount" required="">
        </div>
        <label class="col-md-3 col-form-label">
            Max Net Loan Amount: <span style="color: red;">*</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s loan amount <= Max net loan amount, then the rule has passed, else fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="max_net_loan_amount" value="" placeholder="Enter Max Net Loan Amount" required="">
        </div>
    </div>


    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            FOIR: <span style="color: red;">*</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s FOIR > max FOIR, then the rule has failed, else pass"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="foir" value="" placeholder="Enter Max FOIR" required="">
        </div>
        <label class="col-md-3 col-form-label">
            CF FOIR: <span style="color: red;">*</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s CF FOIR > max CF FOIR, then the rule has failed, else pass"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="cf_foir" value="" placeholder="Enter Max CF FOIR" required="">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Min Net Tenure: <span style="color: red;">*</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s net tenure <= min net tenure field, then the rule has passed, else fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="min_net_tenure" value="" placeholder="Min Net Tenure" required="">
        </div>
        <label class="col-md-3 col-form-label">
            Max Net Tenure: <span style="color: red;">*</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s net tenure >= max net tenure field, then the rule has passed, else fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="max_net_tenure" value="" placeholder="Max Net Tenure" required="">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Solar Financing For
            <i class="fa fa-info-circle" data-toggle="tooltip" title="" data-original-title="If the application’s solar financing for is present in the selected dropdown, then the rule is passed else fail. If none are selected in the dropdown, then this rule is to be skipped"></i>
        </label>
        <div class="col-md-3">
            <select class="form-control m-input selectpicker" name="solar_financing_for[]" id="solar_financing_for" multiple="" data-selected-text-format="count &gt; 3" tabindex="-98">
                <option value=""> Select Solar Financing For </option>
                <option value="1">Residential</option>
                <option value="2">Bharat MSME</option>
                <option value="3">Urban C&amp;I (MSME)</option>
                <option value="4">Housing Society</option>
            </select>
        </div>
        <label class="col-md-3 col-form-label">
            Solar Power Type
            <i class="fa fa-info-circle" data-toggle="tooltip" title="" data-original-title="If the application’s solar power type is present in the selected dropdown, then the rule is passed else fail. If none are selected in the dropdown, then this rule is to be skipped"></i>
        </label>
        <div class="col-md-3">
            <select class="form-control m-input selectpicker" name="solar_power_type[]" id="solar_power_type" multiple="" data-selected-text-format="count &gt; 3" tabindex="-98">
                <option value=""> Select Solar Power Type </option>
                <option value="1">On-Grid</option>
                <option value="2">Off-Grid</option>
                <option value="3">Hybrid</option>
            </select>
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Employee Status:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s employment is present in the selected dropdown, then the rule is passed else fail. If none are selected in the dropdown, then this rule is to be skipped"></i>
        </label>
        <div class="col-md-3">
            <select class="form-control m-input selectpicker" name="employee_status[]" id="employee_status" multiple >
                <option value=""> Select Employee Status </option>
                <option value="UNEMPLOYED">UNEMPLOYED</option>
                <option value="SALARIED">SALARIED</option>
                <option value="BUSINESS">BUSINESS</option>
                <option value="Self Employed - Business">Self Employed - Business</option>
                <option value="Self Employed - Professional">Self Employed - Professional</option>
                <option value="PENSIONER">PENSIONER</option>
                <option value="HOUSEWIFE">HOUSEWIFE</option>
            </select>
        </div>
        <label class="col-md-3 col-form-label">
            Monthly Income:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s monthly income >= Monthly Income, then the rule has passed, else fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="monthly_income" value="" placeholder="Enter Min Monthly Income">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Minimum Age:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s age >= Min Age, then pass else fail. If the value is null, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="age" value="" placeholder="Enter Age">
        </div>
        <label class="col-md-3 col-form-label">
            Age at Last EMI:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If this age is > input then fail, else pass. If the field is blank, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="ageAtLastEMI" value="" >
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Age (Salaried)
            <i class="fa fa-info-circle" data-toggle="tooltip" title="" data-original-title="If the application with employment type salaried has age &gt;= Min Age, then pass else fail. If the value is null, then the rule is to be skipped"></i>
        </label>
        <div class="col-md-3" style="display: flex; align-items: center; gap: 10px;">
            <input type="text" class="form-control m-input  changed " name="age_salaried[0]" value="">
            <span style="padding: 0 5px;">To</span>
            <input type="text" class="form-control m-input  changed " name="age_salaried[1]" value="">
        </div>
        <label class="col-md-3 col-form-label">
            Age (Self Employed &amp; Business)
            <i class="fa fa-info-circle" data-toggle="tooltip" title="" data-original-title="If the application with employment type self employed has age &gt;= Min Age, then pass else fail. If the value is null, then the rule is to be skipped"></i>
        </label>                                                                    
        <div class="col-md-3" style="display: flex; align-items: center; gap: 10px;">
            <input type="text" class="form-control m-input  changed " name="age_self_employed[0]" value="">
            <span style="padding: 0 5px;">To</span>
            <input type="text" class="form-control m-input  changed " name="age_self_employed[1]" value="">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            E-Bill Fuzzy Match
            <i class="fa fa-info-circle" data-toggle="tooltip" title="" data-original-title="Fuzzy match percentage for E-Bill"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input " name="e_bill_fuzzy_match" value="">
        </div>
        <label class="col-md-3 col-form-label">
            KW Capping
            <i class="fa fa-info-circle" data-toggle="tooltip" title="" data-original-title="KW Capping percentage"></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input  changed " name="kw_capping" value="">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            (Term Loan) Amount Should be Paid (%):
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Loan period is > 0 Years. Loan is either ['Auto Loan', 'Housing Loan', 'Personal Loan', 'Consumer Loan', 'Education Loan', 'Loan to Professional', 'Two-wheeler Loan', 'Commercial Vehicle Loan', 'Used Car Loan' 'Business Loan-Priority Sector-Small Business', 'Business Loan - Priority Sector- Agriculture', 'Business Loan - Priority Sector- Others', 'Business Non-Funded Credit Facility', 'Business Non-Funded Credit Facility - Priority', 'Staff Loan']. The loan should be active/open. If the max(Amount Paid) > requested loan amount * [amount paid], then pass else fail. If the input in the field is not present, then the rule is to be skipped."></i><br/>
            <span style="color: blue; font-size: smaller;">Default value should be 0</span>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="term_loan_amount_paid" value="" placeholder="Enter how much % should be paid up">
        </div>
        <label class="col-md-3 col-form-label">
            (Credit Card) Amount Should be Paid (%):
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the max(Amount Paid) > requested loan amount * [amount paid], then pass else fail. If the input in the field is not present, then the rule is to be skipped."></i><br/>
            <span style="color: blue; font-size: smaller;">Default value should be 0</span>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="credit_card_amount_paid" value="" placeholder="Enter how much % should be paid up">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            EPF Employment Verification:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If EPF verification is checked then in the EPF-report check if all the below conditions are true as per current employer data. 1) Is Employed 2) Is Recent; then the application has passed, else fail. If the field is not checked then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="epf_verification">
        </div>
        <label class="col-md-3 col-form-label">
            Fetch GST Number using PAN:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If GST verification is checked then if both of the below conditions is true: 1] If applicant’s employment type is 'business', 'self employed - business', 'self employed - professional'. 2] GST authStatus is ‘Inactive’; then the case has failed, else pass. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="fetch_gst">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Pincode Approval / Risky Pincode:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the Pincode approval is checked, then if both the condition is true: 1] If current address pincode is part of the approved or risky pincode list. 2] If permanent address pincode is past of the approved or risky pincode list; Then the case has passed, else failed. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="is_pincode_approved_or_risky">
        </div>
        <label class="col-md-3 col-form-label">
            Negative Area:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If application’s current address / application's permanent address / co-application’s address is part of the level 1 negative area list, then fail else pass. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="negative_area">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Rejected:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application is ever aborted or rejected, then case has failed, else pass. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="rejected">
        </div>
        <label class="col-md-3 col-form-label">
            Guarantor:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application has zero loans, then pass. If the application has at least 1 non-guarantor loan then pass else fail. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="guarantor">
        </div>
    </div>

    <div class="form-group m-form__group row">
         
        <label class="col-md-3 col-form-label">
            De-Dupe Check:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s PAN card / Mobile Number / Email ID is present previously then the case has failed, else pass. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="check_duplicates">
        </div>
        <label class="col-md-3 col-form-label">
            AccountType:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If >= 3 open gold loans are present then fail, else pass. If the field is not checked, then the rule is to be skipped"></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="accountType">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            No Owned House:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If current address is not present OR Else If current address is present but isn’t: 1] OWNED 2] PARENTS HOUSE 3] Self Owned 4] Parent Owned; Then fail, else pass. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="no_owned_house">
        </div>
        <label class="col-md-3 col-form-label">
            Zero Downpayment:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If EMI is not generated, then mention reason as “EMI not generated” and fail Else if EMI is generated and upfront from customer is <= 0, then fail as “zero downpayment” Else Pass. If the field is not checked, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="zero_downpayment">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Case Type:
            <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="If any of the mentioned values are present in the DPD of the tradeline then fail, else pass. If the field is blank, then the rule is to be skipped. Eg. Inputs -> PWOS,SET."></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="caseType" value="" >
        </div>
        <label class="col-lg-3 col-form-label">
            Bank Validation (%): <span style="color: blue; font-size: smaller">Default value should be 0</span>
            <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title=""></i>
        </label>
        <div class="col-lg-3">
            <input type="text" class="form-control m-input" name="bank_validation" value="" placeholder="Enter % for name match validity">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Years in 0+ DPD:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Number of years to count 0+ DPD"></i>
        </label>
        <div class="col-md-3">
            <input type="number" class="form-control m-input" name="dpd_years_above_zero" value="" placeholder="Enter dpd count Rejection logic" >
        </div>
        <label class="col-md-3 col-form-label">
            Count of 0+ DPD:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Count of the number of times DPD > 0 in last[years]. If the fields are blank, then the rule is to be skipped"></i>
        </label>
        <div class="col-md-3">
            <input type="number" class="form-control m-input" name="dpd_count_above_zero" value="" placeholder="Enter dpd count Rejection logic" >
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Pre-DPD Years:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Number of years within which DPD is to be counted"></i>
        </label>
        <div class="col-md-3">
            <input type="number" class="form-control m-input" name="pre_dpd_years" value="" placeholder="Enter dpdyears logic" >
        </div>
        <label class="col-md-3 col-form-label">
            Pre-DPD Count:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Count of DPD within the mentioned years"></i>
        </label>
        <div class="col-md-3">
            <input type="number" class="form-control m-input" name="pre_dpd_count" value="" placeholder="Enter dpd count logic" >
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Post-DPD Years:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Number of years above which DPD is to be counted"></i>
        </label>
        <div class="col-md-3">
            <input type="number" class="form-control m-input" name="post_dpd_year" value="" placeholder="Enter aboveThreeYear_years logic" >
        </div>
        <label class="col-md-3 col-form-label">
            Post-DPD Count:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Count of DPD above the mentioned years"></i>
        </label>
        <div class="col-md-3">
            <input type="number" class="form-control m-input" name="post_dpd_count" value="" placeholder="Enter aboveThreeYear_dpds logic" >
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Pre-DPD Keywords:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Enter additional Keywords for checking DPD within the specified number of years"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="pre_dpd_keywords" value="" placeholder="Enter dpd_keywords">
        </div>
        <label class="col-md-3 col-form-label">
            Post-DPD Keywords:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Enter additional Keywords for checking DPD above the specified number of years"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="post_dpd_keywords" value="" placeholder="Enter above dpd keywords" >
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Credit Score:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="If the application’s bureau score >= Min Credit Score, then pass else fail. If the value is null, then the rule is to be skipped."></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="score" value="" placeholder="Enter Min Credit Score">
        </div>
        <label class="col-md-3 col-form-label">
            Track Record:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="1] Loans with Ownership as Individual which are not closed OR the loan is closed in the last 3 year. 2] No open loan in the last 6 months with account type Credit card OR Gold Loan OR Loan against Shares/Securities; If the field is not checked, then the rule is to be skipped."></i><br/>
            <span style="color: blue; font-size: smaller;">Active or Closed loan/CC in L3Y with min of 50% of requested value or 50K</span>
        </label>
        <div class="col-lg-3" style="align-self: center; display: flex; align-items: center; gap: 10px;">
            <input type="checkbox" class="form-control m-input track-record-checkbox_Rule" id="track_record_checkbox_Rule" name="track_record" value="on" style="width: auto; margin: 0;">
            <input type="hidden" class="track-record-data-input  changed " id="track_record_data_Rule" name="track_record" value=" &quot;&quot; ">
            <button type="button" class="btn btn-primary track-record-modal-btn" id="track_record_btn_Rule" data-label="Rule" data-modal-type="track-record" data-json-data=" &quot;&quot; " onclick="openModalFromButton(this)" disabled="">
                Track Record
            </button>
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Bureau surrogate:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Requested amount <= x% of the sanctioned amount for any HL, AL, & BL opened in L12M or closed in L60M"></i>
        </label>
        <div class="col-lg-3" style="align-self: center; display: flex; align-items: center; gap: 10px;">
            <input type="checkbox" class="form-control m-input surrogate-checkbox_Rule" id="surrogate_checkbox_Rule" name="bureau_surrogate" value="on" style="width: auto; margin: 0;">
            <input type="hidden" class="surrogate-data-input  changed " id="surrogate_data_Rule" name="bureau_surrogate" value=" &quot;&quot; ">
            <button type="button" class="btn btn-primary surrogate-modal-btn" id="surrogate_btn_Rule" data-label="Rule" data-modal-type="surrogate" data-json-data="" onclick="openModalFromButton(this)" disabled="">
                Open Surrogate Policy
            </button>
        </div>
        <label class="col-md-3 col-form-label">
            Power Savings:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="EMI should be less than or equal to the power saving."></i><br/>
            
        </label>
        <div class="col-md-3">
            <input type="checkbox" class="form-control m-input" name="power_savings">
        </div>
    </div>

    
    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Min Banking Months:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Configure no. of months to evaluate minimum banking history. if Banking months >= configured value then rule will Pass, If Banking months < configured value then rule will Fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="min_banking_months" value="" placeholder="e.g. 6">
        </div>
        <label class="col-md-3 col-form-label">
            Bank A/c Name Fuzzy Match (%):
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Fuzzy match percentage between bank account holder name and applicant name. If Match % >= threshold then rule will Pass, if Match % < threshold then rule will Fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="name_match_threshold_pct" value="" placeholder="e.g. 80">
        </div>
    </div>

    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            Speculative Txn Cap (%):
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Checks if there is any speculative transaction. if Speculative % <= cap then the rule is Pass, if Speculative % > cap then the rule is Fail"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="speculative_txn_cap_pct" value="" placeholder="e.g. 10">
        </div>
        <label class="col-md-3 col-form-label">
            EMI Multiplier on ABB:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Eligible loan amount derived based on EMI & tenure"></i>
        </label>
        <div class="col-md-3">
            <input type="text" class="form-control m-input" name="emi_multiplier_on_abb" value="" placeholder="e.g. 0.5">
        </div>
    </div>

    
    <div class="form-group m-form__group row">
        <label class="col-md-3 col-form-label">
            EMI Bounce Rule:
            <i class="fa fa-info-circle" data-toggle="tooltip" title="Checks the Number of EMI bounces in the defined period. if EMI bounces <= configured limit then rule will Pass, If EMI bounces > configured limit then rule will Fail"></i>
        </label>
        <div class="col-lg-6">
            <div class="row">
                <div class="col-md-6" style="display: flex; align-items: center; padding-right: 5px;">
                    <span style="white-space: nowrap; margin-right: 10px; font-size: 13px; color: #1f2022ff;">Max Bounces:</span>
                    <input type="text" class="form-control m-input" name="emi_bounce_rule[max_emi_bounces]" value="" placeholder="Count e.g. 3">
                </div>
                <div class="col-md-6" style="display: flex; align-items: center; padding-left: 5px;">
                    <span style="white-space: nowrap; margin-right: 10px; font-size: 13px; color: #1f2022ff;">Lookback (M):</span>
                    <input type="text" class="form-control m-input" name="emi_bounce_rule[emi_bounce_lookback_months]" value="" placeholder="months e.g. 1">
                </div>
            </div>
        </div>
    </div>


    
    <div class="form-group m-form__group row">
        <?php
        $dpdData = null;
        $dpdStatus = 0;
        $dpdOwnership = [];
        $dpdExcludeAccountTypes = [];
        $dpdRules = [];
        ?>
        <div class="col-md-6 dpd-section-card mb-4" data-role="collapsible-card" data-data-key="dpd" data-static-rules="1">
                <div class="panel-heading">
                    <h4 class="panel-title d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <label for="dpdEnabled" class="mb-0">
                                <a data-toggle="collapse" href="#dpdCollapseContent" style="font-size: 13px; color: #777171; text-decoration: none;">DPD</a>
                            </label>
                            <span data-toggle="tooltip" title="If any individual tradeline has Dpds based on following rules, then the result is &quot;pass&quot;. Otherwise, the result is &quot;fail&quot;. If the rule is &quot;pass&quot;,  the case will be auto-rejected. Accounts used: Open account, Closed account." style="margin-left: 5px;">
                                <i class="fa fa-info-circle" style="color: #9e9e9e; cursor: pointer;"></i>
                            </span>
                        </div>
                        <div class="form-check form-switch">
                            <input class="form-check-input" type="checkbox" id="dpdEnabled" name="dpd_status" value="1" data-role="card-checkbox" <?php if($dpdStatus == 1): ?> checked <?php endif; ?>>
                            <label class="form-check-label" for="dpdEnabled"></label>
                        </div>
                    </h4>
                </div>
                <div class="collapse show" id="dpdCollapseContent" data-role="collapse-content">
                    <div class="panel-body p-3">
                        <div class="row mb-3">
                            <label for="dpd_ownership" class="col-sm-2 col-form-label">Ownership</label>
                            <div class="col-sm-4">
                                <select id="dpd_ownership" name="dpd_ownership[]" class="form-control m-input selectpicker" multiple>
                                    <option value="individual">Individual</option>
                                    <option value="guarantor">Guarantor</option>
                                    <option value="joint">Joint</option>
                                    <option value="Authorized User">Authorized User</option>
                                </select>
                            </div>
                            <label for="dpd_exclude_account_types" class="col-sm-2 col-form-label">Exclude Account Types</label>
                            <div class="col-sm-4">
                                <select id="dpd_exclude_account_types" name="dpd_exclude_account_types[]" class="form-control m-input selectpicker" multiple>
                                    <?php $__currentLoopData = $account_type_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account_type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo $account_type; ?>"><?php echo $account_type; ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div data-role="rules-container" class="dpd-rules-container" data-name-prefix="dpd_rules" data-template-id="approval-dpd-rule-template" data-initial-count="1">
                            <div class="dpd-rule-row d-flex align-items-center mb-3" data-role="rule-row" id="approval-dpd-default-rule">
                                <input type="text" name="dpd_rules[0][value]" value="30" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Days">
                                <span style="margin-right: 10px">+ days in the last</span>
                                <input type="text" name="dpd_rules[0][months]" value="6" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                                <select name="dpd_rules[0][operator]" class="form-select" style="width: 80px; margin-right: 10px">
                                    <option value="&gt;" selected>&gt;</option>
                                    <option value="=">=</option>
                                    <option value="&lt;">&lt;</option>
                                    <option value="&gt;=">&gt;=</option>
                                    <option value="&lt;=">&lt;=</option>
                                </select>
                                <input type="text" name="dpd_rules[0][tradelines]" value="1" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Count">
                                <span>Tradeline</span>
                            </div>
                            <div data-role="rule-row" class="align-items-center d-none gap-2 mb-3" id="approval-dpd-rule-template">
                                <input type="text" name="__PREFIX__[__INDEX__][value]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Days" disabled>
                                <span style="margin-right: 10px">+ days in the last</span>
                                <input type="text" name="__PREFIX__[__INDEX__][months]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months" disabled>
                                <span style="margin-right: 10px">months</span>
                                <select name="__PREFIX__[__INDEX__][operator]" class="form-select" style="width: 80px; margin-right: 10px" disabled>
                                    <option value="&gt;" selected>&gt;</option>
                                    <option value="=">=</option>
                                    <option value="&lt;">&lt;</option>
                                    <option value="&gt;=">&gt;=</option>
                                    <option value="&lt;=">&lt;=</option>
                                </select>
                                <input type="text" name="__PREFIX__[__INDEX__][tradelines]" value="1" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Count" disabled>
                                <span>Tradeline</span>
                                <button type="button" class="btn btn-danger btn-sm delete-rule" data-role="delete-button" disabled>
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                        <div class="mt-2">
                            <button type="button" class="btn btn-primary btn-sm" data-role="add-button">+Add</button>
                        </div>
                    </div>
                </div>
        </div>
        <?php
        $keywordData = null;
        $keywordStatus = 0;
        $keywordOwnership = [];
        $keywordRules = [];
        $keywordExcludeAccountTypes = [];
        ?>
        <div class="col-md-6 keyword-section-card mb-4" data-role="collapsible-card" data-data-key="KEYWORD" data-static-rules="1">
                <div class="panel-heading">
                    <h4 class="panel-title d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <label for="keywordEnabled" class="mb-0">
                                <a data-toggle="collapse" href="#keywordCollapseContent" style="font-size: 13px; color: #777171; text-decoration: none;">Keyword</a>
                            </label>
                            <span data-toggle="tooltip" title="If any of the selected keywords in the applicant bureau are present in the BRE account status within selected months then pass, else fail.  If the rule is &quot;pass&quot;, the case should be auto- rejected. Accounts used: Open account, Closed account." style="margin-left: 5px;">
                                <i class="fa fa-info-circle" style="color: #9e9e9e; cursor: pointer;"></i>
                            </span>
                        </div>
                        <div class="form-check form-switch">
                            <input class="form-check-input" type="checkbox" id="keywordEnabled" name="keyword_status" value="1" data-role="card-checkbox" <?php if($keywordStatus == 1): ?> checked <?php endif; ?>>
                            <label class="form-check-label" for="keywordEnabled"></label>
                        </div>
                    </h4>
                </div>
                <div class="collapse show" id="keywordCollapseContent" data-role="collapse-content">
                    <div class="panel-body p-3">
                        <div class="row mb-3">
                            <label for="keyword_ownership" class="col-sm-2 col-form-label">Ownership</label>
                            <div class="col-sm-4">
                                <select id="keyword_ownership" name="keyword_ownership[]" class="form-control m-input selectpicker" multiple>
                                    <option value="individual">Individual</option>
                                    <option value="guarantor">Guarantor</option>
                                    <option value="joint">Joint</option>
                                    <option value="Authorized User">Authorized User</option>
                                </select>
                            </div>
                            <label for="keyword_exclude_account_types" class="col-sm-2 col-form-label">Exclude Account Types</label>
                            <div class="col-sm-4">
                                <select id="keyword_exclude_account_types" name="keyword_exclude_account_types[]" class="form-control m-input selectpicker" multiple>
                                    <?php $__currentLoopData = $account_type_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account_type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo $account_type; ?>"><?php echo $account_type; ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div data-role="rules-container" class="keyword-rules-container" data-name-prefix="keyword_rules" data-template-id="approval-keyword-rule-template" data-initial-count="1">
                            <div class="keyword-rule-row d-flex align-items-center mb-3" data-role="rule-row" id="approval-keyword-default-rule">
                                <input type="text" name="keyword_rules[0][value]" value="SMA" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Keywords">
                                <span style="margin-right: 10px">in the last</span>
                                <input type="text" name="keyword_rules[0][months]" value="6" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                                <select name="keyword_rules[0][operator]" class="form-select" style="width: 80px; margin-right: 10px">
                                    <option value="&gt;" selected>&gt;</option>
                                    <option value="=">=</option>
                                    <option value="&lt;">&lt;</option>
                                    <option value="&gt;=">&gt;=</option>
                                    <option value="&lt;=">&lt;=</option>
                                </select>
                                <input type="text" name="keyword_rules[0][tradelines]" value="1" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Count">
                                <span>Tradeline</span>
                            </div>
                            <div data-role="rule-row" class="align-items-center d-none gap-2 mb-3" id="approval-keyword-rule-template">
                                <input type="text" name="__PREFIX__[__INDEX__][value]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Keywords" disabled>
                                <span style="margin-right: 10px">in the last</span>
                                <input type="text" name="__PREFIX__[__INDEX__][months]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months" disabled>
                                <span style="margin-right: 10px">months</span>
                                <select name="__PREFIX__[__INDEX__][operator]" class="form-select" style="width: 80px; margin-right: 10px" disabled>
                                    <option value="&gt;" selected>&gt;</option>
                                    <option value="=">=</option>
                                    <option value="&lt;">&lt;</option>
                                    <option value="&gt;=">&gt;=</option>
                                    <option value="&lt;=">&lt;=</option>
                                </select>
                                <input type="text" name="__PREFIX__[__INDEX__][tradelines]" value="1" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Count" disabled>
                                <span>Tradeline</span>
                                <button type="button" class="btn btn-danger btn-sm delete-rule" data-role="delete-button" disabled>
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                        <div class="mt-2">
                            <button type="button" class="btn btn-primary btn-sm" data-role="add-button">+Add</button>
                        </div>
                    </div>
                </div>
        </div>
    </div>

    
    <div class="form-group m-form__group row">
        <?php
        $pastDuesData = null;
        $pastDueStatus = 0;
        $pastDueOwnership = [];
        $pastDueRules = [];
        ?>
        <div class="col-md-6 past-dues-section-card mb-4" data-role="collapsible-card" data-data-key="PAST_DUES" data-static-rules="1">
                <div class="panel-heading">
                    <h4 class="panel-title d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <label for="pastDuesEnabled" class="mb-0">
                                <a data-toggle="collapse" href="#pastDuesCollapseContent" style="font-size: 13px; color: #777171; text-decoration: none;">Total Past Dues</a>
                            </label>
                            <span data-toggle="tooltip" title="If the Total past dues in the bureau are greater than the value set by the credit team, then 'pass', else fail. If the rule is &quot;pass&quot;, the case should be auto-rejected. Accounts used: Open account | Duration check: Reporting date." style="margin-left: 5px;">
                                <i class="fa fa-info-circle" style="color: #9e9e9e; cursor: pointer;"></i>
                            </span>
                        </div>
                        <div class="form-check form-switch">
                            <input class="form-check-input" type="checkbox" id="pastDuesEnabled" data-role="card-checkbox" name="past_dues_status" value="1" <?php if($pastDueStatus == 1): ?> checked <?php endif; ?>>
                            <label class="form-check-label" for="pastDuesEnabled"></label>
                        </div>
                    </h4>
                </div>
                <div class="collapse show" id="pastDuesCollapseContent" data-role="collapse-content">
                    <div class="panel-body p-3">
                        <div class="row mb-3">
                            <label for="past_dues_ownership" class="col-sm-2 col-form-label">Ownership</label>
                            <div class="col-sm-4">
                                <select id="past_dues_ownership" name="past_dues_ownership[]" class="form-control m-input selectpicker" multiple>
                                    <option value="individual">Individual</option>
                                    <option value="guarantor">Guarantor</option>
                                    <option value="joint">Joint</option>
                                    <option value="Authorized User">Authorized User</option>
                                </select>
                            </div>
                        </div>
                        <div data-role="rules-container" class="past-dues-rules-container" data-name-prefix="past_dues_rules" data-template-id="approval-past-dues-rule-template" data-initial-count="1">
                            <div class="past-dues-rule-row d-flex align-items-center mb-3" data-role="rule-row" id="approval-past-dues-default-rule">
                                <input type="text" name="past_dues_rules[0][value]" value="300" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Amount">
                                <span style="margin-right: 10px"> for</span>
                                <input type="text" name="past_dues_rules[0][account_type]" value="Credit Card" class="form-control" style="width: 120px; margin-right: 10px" placeholder="Account Type">
                                <span style="margin-right: 10px"> in the last</span>
                                <input type="text" name="past_dues_rules[0][months]" value="1" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                            </div>
                            <div data-role="rule-row" class="align-items-center d-none gap-2 mb-3" id="approval-past-dues-rule-template">
                                <input type="text" name="__PREFIX__[__INDEX__][value]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Amount">
                                <span style="margin-right: 10px">for</span>
                                <input type="text" name="__PREFIX__[__INDEX__][account_type]" value="" class="form-control" style="width: 120px; margin-right: 10px" placeholder="Account Type">
                                <span style="margin-right: 10px">in the last</span>
                                <input type="text" name="__PREFIX__[__INDEX__][months]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                                <button type="button" class="btn btn-danger btn-sm delete-rule" data-role="delete-button">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                        <div class="mt-2">
                            <button type="button" class="btn btn-primary btn-sm" data-role="add-button" id="approval-add-past-dues-rule">+Add</button>
                        </div>
                    </div>
                </div>
        </div>
        <?php
        $principalWrittenOffData = null;
        $principalWrittenOffStatus = 0;
        $principalWrittenOffOwnership = [];
        $principalWrittenOffRules = [];
        ?>
        <div class="col-md-6 principal-written-off-section-card mb-4" data-role="collapsible-card" data-data-key="PRINCIPAL_WRITTEN_OFF_AMOUNT" data-static-rules="1">
                <div class="panel-heading">
                    <h4 class="panel-title d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <label for="principalWrittenOffEnabled" class="mb-0">
                                <a data-toggle="collapse" href="#principalWrittenOffCollapseContent" style="font-size: 13px; color: #777171; text-decoration: none;">Principal Written Off Amount</a>
                            </label>
                            <span data-toggle="tooltip" title="If the Principal Written-off amount in the bureau is greater than the value set by the credit team, then 'pass', else fail.  If the rule is &quot;pass&quot;, the case should be auto-rejected Accounts used - Open Account, Closed account | Duration check- Closed date, payment date, and Reporting date." style="margin-left: 5px;">
                                <i class="fa fa-info-circle" style="color: #9e9e9e; cursor: pointer;"></i>
                            </span>
                        </div>
                        <div class="form-check form-switch">
                            <input class="form-check-input" type="checkbox" id="principalWrittenOffEnabled" data-role="card-checkbox" name="principal_written_off_status" value="1" <?php if($principalWrittenOffStatus == 1): ?> checked <?php endif; ?>>
                            <label class="form-check-label" for="principalWrittenOffEnabled"></label>
                        </div>
                    </h4>
                </div>
                <div class="collapse show" id="principalWrittenOffCollapseContent" data-role="collapse-content">
                    <div class="panel-body p-3">
                        <div class="row mb-3">
                            <label for="principal_written_off_ownership" class="col-sm-2 col-form-label">Ownership</label>
                            <div class="col-sm-4">
                                <select id="principal_written_off_ownership" name="principal_written_off_ownership[]" class="form-control m-input selectpicker" multiple>
                                    <option value="individual">Individual</option>
                                    <option value="guarantor">Guarantor</option>
                                    <option value="joint">Joint</option>
                                    <option value="Authorized User">Authorized User</option>
                                </select>
                            </div>
                        </div>
                        <div data-role="rules-container" class="principal-written-off-rules-container" data-name-prefix="principal_written_off_rules" data-template-id="principal-written-off-rule-template" data-initial-count="1">
                            <div class="principal-written-off-rule-row d-flex align-items-center mb-3" data-role="rule-row" id="principal-written-off-default-rule">
                                <input type="text" name="principal_written_off_rules[0][value]" value="300" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Amount">
                                <span style="margin-right: 10px"> in the last</span>
                                <input type="text" name="principal_written_off_rules[0][months]" value="1" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                            </div>
                            <div data-role="rule-row" class="align-items-center d-none gap-2 mb-3" id="principal-written-off-rule-template">
                                <input type="text" name="__PREFIX__[__INDEX__][value]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Amount">
                                <span style="margin-right: 10px">in the last</span>
                                <input type="text" name="__PREFIX__[__INDEX__][months]" value="" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                                <button type="button" class="btn btn-danger btn-sm delete-rule" data-role="delete-button">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                        <div class="mt-2">
                            <button type="button" class="btn btn-primary btn-sm" data-role="add-button" id="add-principal-written-off-rule">+Add</button>
                        </div>
                    </div>
                </div>
        </div>
    </div>

    
    <div class="form-group m-form__group row">
        <?php
        $accountStatusData = null;
        $accountStatusStatus = 0;
        $accountStatusOwnership = [];
        $accountStatusRules = [];
        ?>
        <div class="col-md-6 account-status-section-card mb-4" data-role="collapsible-card" data-data-key="ACCOUNT_STATUS" data-static-rules="1">
                <div class="panel-heading">
                    <h4 class="panel-title d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <label for="accountStatusEnabled" class="mb-0">
                                <a data-toggle="collapse" href="#accountStatusCollapseContent" style="font-size: 13px; color: #777171; text-decoration: none;">Account Status</a>
                            </label>
                            <span data-toggle="tooltip" title="If any of the selected statuses in the applicant bureau are present in the BRE account status within selected months then pass, else fail.  If the rule is &quot;pass&quot;, the case should be auto- rejected. Accounts used - Open Account, Closed account| Duration check- Closed date, payment date, and Reporting date." style="margin-left: 5px;">
                                <i class="fa fa-info-circle" style="color: #9e9e9e; cursor: pointer;"></i>
                            </span>
                        </div>
                        <div class="form-check form-switch">
                            <input class="form-check-input" type="checkbox" id="accountStatusEnabled" data-role="card-checkbox" name="account_status_status" value="1" <?php if($accountStatusStatus == 1): ?> checked <?php endif; ?>>
                            <label class="form-check-label" for="accountStatusEnabled"></label>
                        </div>
                    </h4>
                </div>
                <div class="collapse show" id="accountStatusCollapseContent" data-role="collapse-content">
                    <div class="panel-body p-3">
                        <div class="row mb-3">
                            <label for="account_status_ownership" class="col-sm-2 col-form-label">Ownership</label>
                            <div class="col-sm-4">
                                <select id="account_status_ownership" name="account_status_ownership[]" class="form-control m-input selectpicker" multiple>
                                    <option value="individual">Individual</option>
                                    <option value="guarantor">Guarantor</option>
                                    <option value="joint">Joint</option>
                                    <option value="Authorized User">Authorized User</option>
                                </select>
                            </div>
                        </div>
                        <div data-role="rules-container" class="account-status-rules-container" data-name-prefix="account_status_rules" data-template-id="account-status-rule-template" data-initial-count="1">
                            <div class="account-status-rule-row d-flex align-items-center mb-3" data-role="rule-row" id="account-status-default-rule">
                                <input type="text" name="account_status_rules[0][value]" value="Suit Filed" class="form-control" style="width: 100px; margin-right: 10px" placeholder="Account Status">
                                <span style="margin-right: 10px"> in the last</span>
                                <input type="text" name="account_status_rules[0][months]" value="6" class="form-control" style="width: 70px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                            </div>
                            <div data-role="rule-row" class="align-items-center d-none gap-2 mb-3" id="account-status-rule-template">
                                <input type="text" name="__PREFIX__[__INDEX__][value]" value="" class="form-control" style="width: 140px; margin-right: 10px" placeholder="Account Status">
                                <span style="margin-right: 10px">in the last</span>
                                <input type="text" name="__PREFIX__[__INDEX__][months]" value="" class="form-control" style="width: 50px; margin-right: 10px" placeholder="Months">
                                <span style="margin-right: 10px">months</span>
                                <button type="button" class="btn btn-danger btn-sm delete-rule" data-role="delete-button">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                        <div class="mt-2">
                            <button type="button" class="btn btn-primary btn-sm" data-role="add-button" id="approval-add-account-status-rule">+Add</button>
                        </div>
                    </div>
                </div>
        </div>
    </div>
</div>
