<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() ?>device-settings/tcp-ip-settings/edit?used_config_file=<?= $intUsedConfigFile ?>" class="btn btn-outline-info"> <i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;Edit TCP-IP Settings</a>
                </div>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-device-mode">Mode: &nbsp;</label>
                        <span><?= ( TCPIP_SERVER == $arrmixTcpIpSettingsDetails['mode'] ) ? 'TCP-IP Server' : 'TCP-IP Client' ?></span>
                    </div>
                </div>

                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-ip-address">Ip Address: &nbsp;</label>
                        <span><?= $arrmixTcpIpSettingsDetails['ip_address'] ?></span>
                    </div>
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-subnet-mask">Subnet Mask: &nbsp;</label>
                        <span><?= $arrmixTcpIpSettingsDetails['subnet_mask'] ?></span>
                    </div>
                </div>

                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-default-gateway">Default Gateway: &nbsp;</label>
                        <span><?= $arrmixTcpIpSettingsDetails['default_gateway'] ?></span>
                    </div>
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-port">Port: &nbsp;</label>
                        <span><?= $arrmixTcpIpSettingsDetails['port'] ?></span>
                    </div>
                </div>

                <div class="row">
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-connection-timeout">Connection Timeout: &nbsp;</label>
                        <span><?= $arrmixTcpIpSettingsDetails['connection_timeout'] ?></span>
                    </div>
                    <div class="col-4 form-group">
                        <label class="control-label" for="js-response-timeout">Response Timeout: &nbsp;</label>
                        <span><?= $arrmixTcpIpSettingsDetails['response_timeout'] ?></span>
                    </div>
                </div>
                <!-- /.card-body -->
            </div>    
            <!-- /.card-body -->
        </div>
    </div><!-- /.container-fluid -->
</section>

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

</script>