<script src="<?= getBaseUrl() ?>assets/plugins/jquery/jquery.min.js"></script>

<!-- Content Header (Page header) -->
<?php App\Controllers\BackendController::createService()->showBreadCrumbs( $arrmixBreadCrumbData ) ?>
<!-- /.content-header -->

<!-- Main content -->
<section class="content">
    <div class="container-fluid">
        <div class="js-show-alert-message">
            <?php App\Controllers\BackendController::createService()->showAlertMessage( $arrmixFlashData ) ?>
        </div>

        <div class="card card-default">
            <div class="card-header">
                <div class="card-tools">
                    <a href="<?= getBaseUrl() ?>spanning-tree/edit?used_config_file=<?= $intUsedConfigFile ?>" class="btn btn-outline-info"> <i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;Edit Spanning Tree Settings</a>
                </div>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-mode">Mode Settings: &nbsp;</label>
                        <span><?= ( SPT_MODE_RSTP ==  $arrmixNetworkSettingsDetails['mode_settings'] ) ? 'RSTP' : 'STP' ?></span>
                    </div>    
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-mode-setting-status">Mode Settings Status: &nbsp;</label>
                        <span class="badge badge-<?= ( SPT_MODE_ENABLED ==  $arrmixNetworkSettingsDetails['mode_settings_status'] ) ? 'success' : 'danger' ?>"><?= ( SPT_MODE_ENABLED ==  $arrmixNetworkSettingsDetails['mode_settings_status'] ) ? 'Enabled' : 'Disabled' ?></span>
                    </div>    
                </div> 

                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-priority">Priority: &nbsp;</label>
                        <span><?= $arrmixSpanningTreeDetails['priority'] ?></span>
                    </div>
                    <div class="col-5 form-group">
                        <label class="control-label" for="js-maximum-age">Maximum Age: &nbsp;</label>
                        <span><?= $arrmixSpanningTreeDetails['maximum_age'] ?></span>
                    </div>
                </div>
                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-hello-time">Hello Time: &nbsp;</label>
                        <span><?= $arrmixSpanningTreeDetails['hello_time'] ?></span>
                    </div>
                    <div class="col-5 form-group">
                        <label class="control-label" for="js-forward-delay">Forward Delay: &nbsp;</label>
                        <span><?= $arrmixSpanningTreeDetails['forward_delay'] ?></span>
                    </div>
                </div>
                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-primary-port">Primary Port: &nbsp;</label>
                        <span><?= strtoupper( $arrmixSpanningTreeDetails['primary_port'] ) ?></span>
                    </div>
                    <div class="col-5 form-group">
                        <label class="control-label" for="js-seconday-port">Secondary Port: &nbsp;</label>
                        <span><?= strtoupper( $arrmixSpanningTreeDetails['secondary_port'] ) ?></span>
                    </div>
                </div>
                <!-- /.card-body -->
            </div>    
            <!-- /.card-body -->
        </div>
    </div><!-- /.container-fluid -->
</section>

<script>
    $(document).ready(function() {
    });

</script>