<?php

/**
 * Provide a admin area view for the plugin
 *
 * This file is used to markup the admin-facing aspects of the plugin.
 *
 * @link       https://www.linkedin.com/in/devendrasinghbhandari/
 * @since      1.0.0
 *
 * @package    Disable_Fast_Velocity_Minify
 * @subpackage Disable_Fast_Velocity_Minify/admin/partials
 */
?>

<!-- This file should primarily consist of HTML with a little bit of PHP. -->

<div class="wrap dfvm">
    <h1 class="dfvm-admin-page-title">Disable Fast Velocity Minify</h1>
    <?php
    if ( ! empty( $_POST['nonce_CMB2phpdfvm_settings'] ) ) {
        add_settings_error( 'dfvm_messages', 'dfvm_message', __( 'Settings saved.', 'disable-fast-velocity-minify' ), 'updated' );
    }

    settings_errors( 'dfvm_messages' );
    ?>
    <div class="nav-tab-wrapper">
        <?php
        foreach ( $tabs as $tab_slug => $tab_title ) {
            $class = ( $tab_slug == $current_tab ) ? ' nav-tab-active' : '';
            $url = admin_url( 'options-general.php?page=dfvm&tab=' . $tab_slug );
            echo "<a class='nav-tab" . $class . "' href='" . $url . "'>" . $tab_title . "</a>";
        }
        ?>
    </div>
    <div id="poststuff">
        <div class="postbox">
            <div class="inside">
                <?php
                echo cmb2_get_metabox_form( 'dfvm_settings', 'dfvm', array( 'save_button' => __( 'Save Changes', 'disable-fast-velocity-minify' ) ) ); ?>
            </div>
        </div>
    </div>
</div>