<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<table class="form-table">
    <tr valign="top">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Default Settings', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'Set default invoices settings', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td>
            <div class="mb-4">
                <label><?php esc_html_e( 'Default VAT Percent', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="number" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>default_vat_percent" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'default_vat_percent' ))); ?>" />
            </div>
            <div class="mb-4">
                <label><?php esc_html_e( 'Default VAT reason', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>default_vat_reason" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'default_vat_reason' ))); ?>" />
            </div>
            <div class="mb-4">
                <label><?php esc_html_e( 'Default Discount', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="number" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>default_discount" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'default_discount' ))); ?>" />
            </div>
            <div class="mb-4">
                <label><?php esc_html_e( 'Invoice number length', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="number" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>invoices_num_length" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'invoices_num_length' ))); ?>" />
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_default_discount_type = get_option($Config::INPUTS_PREFIX.'default_discount_type');
                ?>
                <div><label><?php esc_html_e( 'Default Discount Type', 'kirilkirkov-pdf-invoice-manager' ); ?></label></div>
                <select name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>default_discount_type">
                    <option <?php echo !$kirilkirkovwipdf_default_discount_type || ($kirilkirkovwipdf_default_discount_type === '' || $kirilkirkovwipdf_default_discount_type === 'currency') ? 'selected="selected"' : ''; ?> value="currency"><?php esc_html_e( 'Currency', 'kirilkirkov-pdf-invoice-manager' ); ?></option>
                    <option <?php echo $kirilkirkovwipdf_default_discount_type && $kirilkirkovwipdf_default_discount_type === 'percent' ? 'selected="selected"' : ''; ?> value="percent"><?php esc_html_e( 'Percent', 'kirilkirkov-pdf-invoice-manager' ); ?></option>
                </select>
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_dates_format_type = get_option($Config::INPUTS_PREFIX.'dates_format_type');
                ?>
                <div><label><?php esc_html_e( 'Dates Format Type', 'kirilkirkov-pdf-invoice-manager' ); ?></label></div>
                <select name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>dates_format_type">
                    <?php foreach($Config::get_dates_format_types() as $kirilkirkovwipdf_date_type) { ?>
                        <option <?php echo (!$kirilkirkovwipdf_dates_format_type && $kirilkirkovwipdf_date_type === $Config::DEFAULT_DATE_FORMAT) || ($kirilkirkovwipdf_dates_format_type === $kirilkirkovwipdf_date_type) ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr(sanitize_text_field($kirilkirkovwipdf_date_type)); ?>"><?php echo esc_html(sanitize_text_field($kirilkirkovwipdf_date_type)); ?></option>
                    <?php } ?>
                </select>
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_numbers_format_system = get_option($Config::INPUTS_PREFIX.'numbers_format_system');
                ?>
                <div><label><?php esc_html_e( 'Numbers Format Type', 'kirilkirkov-pdf-invoice-manager' ); ?></label></div>
                <select name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>numbers_format_system">
                    <option <?php echo !$kirilkirkovwipdf_numbers_format_system || ($kirilkirkovwipdf_numbers_format_system === '' || $kirilkirkovwipdf_numbers_format_system === 'default') ? 'selected="selected"' : ''; ?> value="default"><?php esc_html_e( 'Default', 'kirilkirkov-pdf-invoice-manager' ); ?> 1,000,000.10</option>
                    <option <?php echo $kirilkirkovwipdf_numbers_format_system && $kirilkirkovwipdf_numbers_format_system === 'metric' ? 'selected="selected"' : ''; ?> value="metric"><?php esc_html_e( 'Metric', 'kirilkirkov-pdf-invoice-manager' ); ?> 1.000.000,10</option>
                </select>
            </div>
            <div>
                <?php 
                    $kirilkirkovwipdf_currency_placement = get_option($Config::INPUTS_PREFIX.'currency_placement');
                ?>
                <div><label><?php esc_html_e( 'Currency Placement', 'kirilkirkov-pdf-invoice-manager' ); ?></label></div>
                <select name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>currency_placement">
                    <option <?php echo !$kirilkirkovwipdf_currency_placement || ($kirilkirkovwipdf_currency_placement === '' || $kirilkirkovwipdf_currency_placement === 'default') ? 'selected="selected"' : ''; ?> value="default">1000 $</option>
                    <option <?php echo $kirilkirkovwipdf_currency_placement && $kirilkirkovwipdf_currency_placement === 'currency_last__no_space' ? 'selected="selected"' : ''; ?> value="currency_last__no_space">1000$</option>
                    <option <?php echo $kirilkirkovwipdf_currency_placement && $kirilkirkovwipdf_currency_placement === 'currency_first__space' ? 'selected="selected"' : ''; ?> value="currency_first__space">$ 1000</option>
                    <option <?php echo $kirilkirkovwipdf_currency_placement && $kirilkirkovwipdf_currency_placement === 'currency_first__no_space' ? 'selected="selected"' : ''; ?> value="currency_first__no_space">$1000</option>
                </select>
            </div>
        </td>
        <td class="vertical-align-top">
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_default_no_vat = get_option($Config::INPUTS_PREFIX.'default_no_vat');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'default_no_vat'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'default_no_vat'; ?>" value="1" <?php echo $kirilkirkovwipdf_default_no_vat && (int)$kirilkirkovwipdf_default_no_vat === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'Disabled VAT', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_disabled_items_update_quantity_on_edit = get_option($Config::INPUTS_PREFIX.'disabled_items_update_quantity_on_edit');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disabled_items_update_quantity_on_edit'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disabled_items_update_quantity_on_edit'; ?>" value="1" <?php echo $kirilkirkovwipdf_disabled_items_update_quantity_on_edit && (int)$kirilkirkovwipdf_disabled_items_update_quantity_on_edit === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'Disable Items Quantity Update When Edit Invoices', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_disabled_items_update_quantity_on_create = get_option($Config::INPUTS_PREFIX.'disabled_items_update_quantity_on_create');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disabled_items_update_quantity_on_create'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disabled_items_update_quantity_on_create'; ?>" value="1" <?php echo $kirilkirkovwipdf_disabled_items_update_quantity_on_create && (int)$kirilkirkovwipdf_disabled_items_update_quantity_on_create === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'Disable Items Quantity Update When Create Invoices', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_show_schiffer_field_in_invoices = get_option($Config::INPUTS_PREFIX.'show_schiffer_field_in_invoices');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'show_schiffer_field_in_invoices'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'show_schiffer_field_in_invoices'; ?>" value="1" <?php echo $kirilkirkovwipdf_show_schiffer_field_in_invoices && (int)$kirilkirkovwipdf_show_schiffer_field_in_invoices === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'Show Schiffer field in invoices', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
                <a class="show-info" data-info="<?php esc_attr_e( 'There are countries in which “Schiffer” is identification number for Electronic Invoices which replace the signature of the invoice. If you need this field, you can enable it.', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
            <div class="mb-4">
                <?php 
                    $kirilkirkovwipdf_disable_auto_fill_compiled_field = get_option($Config::INPUTS_PREFIX.'disable_auto_fill_compiled_field');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disable_auto_fill_compiled_field'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disable_auto_fill_compiled_field'; ?>" value="1" <?php echo $kirilkirkovwipdf_disable_auto_fill_compiled_field && (int)$kirilkirkovwipdf_disable_auto_fill_compiled_field === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'Disable autofill compiled field into the invoices', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>
            <div>
                <?php 
                    $kirilkirkovwipdf_disalbe_origin_inv_generator = get_option($Config::INPUTS_PREFIX.'disalbe_origin_inv_generator');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disalbe_origin_inv_generator'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disalbe_origin_inv_generator'; ?>" value="1" <?php echo $kirilkirkovwipdf_disalbe_origin_inv_generator && (int)$kirilkirkovwipdf_disalbe_origin_inv_generator === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'Disable default invoice numbers generation', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
                <a class="show-info" data-info="<?php esc_attr_e( 'Keep in mind that this functionality will stop automatic generation of next numbers of your invoices', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </td>
    </tr>

    <tr>
        <th scope="row" class="align-middle"></th>
        <td colspan="2">
            <div class="premium-feature-box-mini flex items-center flex-col justify-center mt-4 gap-1">
                <img class="w-6 h-6" src="<?php echo esc_url(plugins_url('../../Assets/Img/crown.svg', __FILE__ )); ?>" alt="<?php echo esc_attr( 'WP Invoices' ) ?>" />
                <span><?php esc_html_e( 'Custom SMTP server functionality is available only into the Premium version.', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a href="<?php echo esc_url($Config::PREMIUM_LINK); ?>" class="kkinv-btn-primary" target="_blank"><?php esc_html_e( 'Get Premium Now', 'kirilkirkov-pdf-invoice-manager' ); ?></a>
            </div>
        </td>
    </tr>

    <tr valign="top" class="premium-feature-container">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Email Server', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'How did you want to send your emails - through custom smtp server or default php mail function.', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td>
            <div class="mb-4">
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'premium_version'; ?>" value="1">
                    <?php esc_html_e( 'Enable custom SMTP Server', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>
            
            <div class="mb-4">
                <label><?php esc_html_e( 'SMTP Host (eg. smtp.gmail.com)', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_version" value="" />
            </div>
            <div class="mb-4">
                <label><?php esc_html_e( 'SMTP Port (eg. 465)', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_version" value="" />
            </div>
            <div class="mb-4 ">
                <label><?php esc_html_e( 'SMTP Username', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_version" value="" />
            </div>
            <div class="">
                <label><?php esc_html_e( 'SMTP Password', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="password" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_version" value="" />
            </div>
        </td>
        <td>
            <div class="mb-4 ">
                <?php 
                    $kirilkirkovwipdf_custom_smtp_auth = get_option($Config::INPUTS_PREFIX.'custom_smtp_auth');
                ?>
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'custom_smtp_auth'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'custom_smtp_auth'; ?>" value="1" <?php echo $kirilkirkovwipdf_custom_smtp_auth && (int)$kirilkirkovwipdf_custom_smtp_auth === 1 ? 'checked' : ''; ?>>
                    <?php esc_html_e( 'SMTP Auth', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>
            <div class="mb-4 ">
                <div><label><?php esc_html_e( 'SMTP Secure', 'kirilkirkov-pdf-invoice-manager' ); ?></label></div>
                <select name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_version">
                    <option selected="selected" value="tls"><?php esc_html_e( 'TLS', 'kirilkirkov-pdf-invoice-manager' ); ?></option>
                </select>
            </div>
            <div class="mb-4 ">
                <label><?php esc_html_e( 'SMTP From Email', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>custom_smtp_from" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'premium_version' ))); ?>" />
            </div>
            <div class="">
                <label><?php esc_html_e( 'SMTP From Name', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>custom_smtp_from_name" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'premium_version' ))); ?>" />
            </div>
        </td>
    </tr>

    <tr valign="top">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Remarks', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'Add default Remarks to newly created invoices', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td colspan="2">
            <div>
                <label><?php esc_html_e( 'Keep in mind that Remarks are Visible for client', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <textarea name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>default_remarks"><?php echo esc_textarea(get_option( $Config::INPUTS_PREFIX.'default_remarks' )); ?></textarea>
            </div>
        </td>
    </tr>

    <tr valign="top">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Decimal digits', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'Sets the number of decimal digits of amounts', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td>
            <div>
                <label><?php esc_html_e( 'Count digits', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="number" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>count_decimal_digits" value="<?php echo esc_attr(sanitize_text_field(get_option( $Config::INPUTS_PREFIX.'count_decimal_digits' ))); ?>">
            </div>
        </td>
        <td>
            <?php 
                $kirilkirkovwipdf_disabled_js_calc = get_option($Config::INPUTS_PREFIX.'disabled_js_calc');
            ?>
            <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disabled_js_calc'; ?>" value="0" />
            <label>
                <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'disabled_js_calc'; ?>" value="1" <?php echo $kirilkirkovwipdf_disabled_js_calc && (int)$kirilkirkovwipdf_disabled_js_calc === 1 ? 'checked' : ''; ?>>
                <?php esc_html_e( 'Disabled automatic calculator', 'kirilkirkov-pdf-invoice-manager' ); ?>
            </label>
        </td>
    </tr>

    <tr valign="top">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Currencies', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'Add currencies which wants to show in create invoices form. First ordered is selected by default', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td colspan="2">
            <div class="dynamic-container currencies-container">
                <?php 
                $kirilkirkovwipdf_currencies = get_option($Config::INPUTS_PREFIX.'currencies');
                if($kirilkirkovwipdf_currencies) {
                    foreach ($kirilkirkovwipdf_currencies as $kirilkirkovwipdf_currency) {  ?>
                        <div class="mb-4">
                            <input type="text" maxlength="255" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'currencies[]'; ?>" value="<?php echo esc_attr(sanitize_text_field($kirilkirkovwipdf_currency)); ?>">
                            <a href="javascript:;" class="remove-dynamic-element"></a>
                            <span class="dashicons dashicons-sort"></span>
                        </div>
                <?php }
                 } ?>
            </div>
            <a class="add-input accent-button bg-main--important inline-block--important" data-container="currencies-container" data-name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>currencies[]" href="javascript:;"><?php esc_html_e( 'Add currency', 'kirilkirkov-pdf-invoice-manager' ); ?></a>
        </td>
    </tr>

    <tr valign="top">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Quantity Types', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'Quantity types to show in create invoice page. First ordered is selected by default', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td colspan="2">
            <div class="dynamic-container quantity-container">
                <?php 
                $kirilkirkovwipdf_quantity_types = get_option($Config::INPUTS_PREFIX.'quantity_types');
                if($kirilkirkovwipdf_quantity_types) {
                    foreach ($kirilkirkovwipdf_quantity_types as $kirilkirkovwipdf_quantity) {  ?>
                        <div class="mb-4">
                            <input type="text" maxlength="255" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'quantity_types[]'; ?>" value="<?php echo esc_attr(sanitize_text_field($kirilkirkovwipdf_quantity)); ?>">
                            <a href="javascript:;" class="remove-dynamic-element"></a>
                            <span class="dashicons dashicons-sort"></span>
                        </div>
                <?php }
                 } ?>
            </div>
            <a class="add-input accent-button bg-main--important inline-block--important" data-container="quantity-container" data-name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>quantity_types[]" href="javascript:;"><?php esc_html_e( 'Add quantity type', 'kirilkirkov-pdf-invoice-manager' ); ?></a>
        </td>
    </tr>

    <tr valign="top">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'Payment methods', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'Available payment methods for create invoice page. First ordered is selected by default', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>
        <td colspan="2">
            <div class="dynamic-container payment-methods-container">
                <?php 
                $kirilkirkovwipdf_payment_methods = get_option($Config::INPUTS_PREFIX.'payment_methods');
                if($kirilkirkovwipdf_payment_methods) {
                    foreach ($kirilkirkovwipdf_payment_methods as $kirilkirkovwipdf_pm) {  ?>
                        <div class="mb-4">
                            <input type="text" maxlength="255" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'payment_methods[]'; ?>" value="<?php echo esc_attr(sanitize_text_field($kirilkirkovwipdf_pm)); ?>">
                            <a href="javascript:;" class="remove-dynamic-element"></a>
                            <span class="dashicons dashicons-sort" title="<?php esc_attr_e('Move/Sort', 'kirilkirkov-pdf-invoice-manager'); ?>"></span>
                        </div>
                <?php }
                 } ?>
            </div>
            <a class="add-input accent-button bg-main--important inline-block--important" data-container="payment-methods-container" data-name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>payment_methods[]" href="javascript:;"><?php esc_html_e( 'Add Payment Method', 'kirilkirkov-pdf-invoice-manager' ); ?></a>
        </td>
    </tr>
</table>
<input type="hidden" name="page_options" value="<?php echo esc_attr(sanitize_text_field($Config::MAIN_INPUT_GROUP)); ?>" />
<?php settings_fields($Config::MAIN_INPUT_GROUP); ?>