<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">
                <h3 class="card-title">Mode: <b>Converter</b></h3>
                <div class="card-tools">
                    <a href="<?= getBaseUrl() ?>device-settings/com-settings/edit-com-settings?used_config_file=<?= $intUsedConfigFile ?>" class="btn btn-outline-info"> <i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;Edit COM Port</a>
                </div>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-baud">Mode: &nbsp;</label>
                        <span><?= getModesName( $arrmixComSettingsDetails['mode'] ) ?></span>
                    </div>

                    <div class="col-4 form-group">
                        <label class="control-label" for="js-baud">Baud Rate: &nbsp;</label>
                        <span><?= $arrmixComSettingsDetails['baud_rate'] ?></span>
                    </div>

                    <div class="col-4 form-group">
                        <label class="control-label" for="js-data-bits">Data Bits: &nbsp;</label>
                        <span><?= $arrmixComSettingsDetails['data_bits'] ?></span>
                    </div> 
                </div>

                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-flow_control">Flow Control: &nbsp;</label>
                        <span class="badge badge-danger">OFF</span>
                    </div>   

                    <div class="col-4 form-group">
                        <label class="control-label" for="js-parity-bits">Parity Bits: &nbsp;</label>
                        <span><?= getParityBitsName( $arrmixComSettingsDetails['parity_bits'] ) ?></span>
                    </div>

                    <div class="col-4 form-group">
                        <label class="control-label" for="js-stop-bits">Stop Bits: &nbsp;</label>
                        <span><?= $arrmixComSettingsDetails['stop_bits'] ?></span>
                    </div>
                </div>
                <!-- /.card-body -->
            </div>    
            <!-- /.card-body -->
        </div>
    </div><!-- /.container-fluid -->
</section>

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

</script>