<link rel="stylesheet"
      href="<?php echo base_url(); ?>assets/at-admin/css/layouts/view.css?v=<?= rand(10000, 100000) ?>">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/at-admin/css/drag_list.css">
<style>
    .form-control {
        height: calc(1.5em + .75rem + 10px);
    }
</style>
<!-- Page Breadcrumb -->
<div class="page-breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="fa fa-home"></i>
            <a href="<?= base_url('at-admin/settings'); ?>" style="color: #797979">主頁</a>
        </li>
        <li>
            <i class="fa fa-home"></i>
            <a href="<?= base_url('at-admin/professional'); ?>" style="color: #797979">專業項目諮詢［立即體驗］</a>
        </li>
        <li class="active" style="color: #ef4130">新增諮詢項目</li>
    </ul>
</div>
<!-- /Page Breadcrumb -->
<!-- Page Header -->
<div class="page-header position-relative">
    <div class="header-title">
        <h1>
			專業項目諮詢［立即體驗］
        </h1>
    </div>
    <!--Header Buttons-->
    <div class="header-buttons">
        <a class="sidebar-toggler" href="#">
            <i class="glyphicon glyphicon-resize-horizontal"></i>
        </a>
        <a class="refresh" id="refresh-toggler" href="#">
            <i class="glyphicon glyphicon-refresh"></i>
        </a>
        <a class="fullscreen" id="fullscreen-toggler" href="#">
            <i class="glyphicon glyphicon-fullscreen"></i>
        </a>
    </div>
    <!--Header Buttons End-->
</div>
<!-- /Page Header -->
<!-- Page Body -->
<div class="page-body">
    <div class="container-fluid py-2" style="min-height:80vh;">
        <!-- <h2 style="color:#7d4495;">正在架設中...敬請期待!</h2> -->

        <!-- dashboard -->
        <div class="row">
            <!-- column -->

            <div class="col">
                <!-- body table -->
                <div class="box-typical box-typical-padding">
                    <h5 class="with-border">Information</h5>
                    <form class="form-horizontal" method="post" action="<?=base_url('at-admin/professional/edit');?>"
                          enctype="multipart/form-data">
                        <input type="hidden" name="<?= $csrf['name']; ?>" value="<?= $csrf['hash']; ?>"/>
                        <input type="hidden" name="displayorder"
                               value="<?= isset($professional['displayorder']) ? $professional['displayorder'] : ''; ?>"/>
                        <?php if ($save) { ?>
                            <div class="alert alert-success alert-dismissable ">
                                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
								項目成功儲存.
                            </div>
                        <?php } ?>
                        <div class="form-group row">
                            <label class="col-sm-2 control-label">標題</label>
                            <div class="col-sm-10">
                                <input type="text" name="title" class="form-control" required
                                       value="<?php if (isset($professional['title'])) {
                                           echo $professional['title'];
                                       } ?>" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-10">
                                <input name="save" type="submit" class="btn btn-success" value="儲存">
                                <input type="submit" class="btn btn-danger" value="重設">
                                <a href="<?=base_url('at-admin/professional');?>">返回</a>
                                <input type="hidden" name="id" value="<?php if (isset($professional['id'])) {
                                    echo $professional['id'];
                                } ?>" />
                            </div>
                        </div>
                    </form>
                </div>
                <!--.box-typical-->

                <!-- end body table -->
            </div>
        </div>
        <!-- end dashboard -->
    </div>
</div>

<!-- /Page Body -->
<script>
    var base_url = '<?=base_url();?>';
    var csrf_name = '<?=$csrf['name'];?>';
    var csrf_hash = '<?=$csrf['hash'];?>';
</script>
<script defer="" src="<?php echo base_url(); ?>assets/at-admin/js/jquery-ui-min.js"></script>
<script defer="" src="<?php echo base_url(); ?>assets/at-admin/js/custom/professional_edit.js"></script>
