<link rel="stylesheet"
      href="<?php echo base_url(); ?>assets/at-admin/css/layouts/view.css?v=<?= rand(10000, 100000) ?>">
<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/dashboard'); ?>" 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 -->
                <form class="form-horizontal" method="post" action="<?=base_url('at-admin/inquiry_settings');?>"
                      enctype="multipart/form-data">
                    <input type="hidden" name="<?= $csrf['name']; ?>" value="<?= $csrf['hash']; ?>"/>
                    <div class="form-group row p-2">
                        <label class="col-sm-2 control-label">使用菜單</label>
                        <div class="col-sm-10">
                            <?php
                            $checked = $settings['use_navigation'] ? ' checked="checked"' : '';
                            ?>
                            <input type="checkbox" name="use_navigation" class="form-control" value="1"<?=$checked;?> />
                        </div>
                    </div>
                    <div class="form-group row p-2">
                        <label class="col-sm-2 control-label">使用橫額</label>
                        <div class="col-sm-10">
                            <?php
                            $checked = $settings['use_banner'] ? ' checked="checked"' : '';
                            ?>
                            <input type="checkbox" name="use_banner" class="form-control" value="1"<?=$checked;?> />
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 control-label">桌面版橫額</label>
                        <div class="col-sm-10 ">
                            <?php
                            if ($settings['banner_desktop'] != '') {
                            ?>
                            <img src="<?=base_url($settings['banner_desktop']);?>" width="500"
                                 height="auto" />
                            <?php
                            }
                            ?>
                            <p class="">圖片尺寸(1920px x 618px)</p>
                            <input type="file" name="banner_desktop" id="banner_desktop"
                                   class="input_photo form-control " style="width: auto;"/>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 control-label">手機版橫額</label>
                        <div class="col-sm-10 ">
                            <?php
                            if ($settings['banner_mobile'] != '') {
                            ?>
                            <img src="<?=base_url($settings['banner_mobile']);?>" width="500"
                                 height="auto" />
                            <?php
                            }
                            ?>
                            <p class="">圖片尺寸(800px x 709px)</p>
                            <input type="file" name="banner_mobile" id="banner_mobile"
                                   class="input_photo form-control " style="width: auto;"/>
                        </div>
                    </div>
                    <div class="form-group row p-2">
                        <label class="col-sm-2 control-label">使用側邊欄</label>
                        <div class="col-sm-10">
                            <?php
                            $checked = $settings['use_sidebar'] ? ' checked="checked"' : '';
                            ?>
                            <input type="checkbox" name="use_sidebar" class="form-control" value="1"<?=$checked;?> />
                        </div>
                    </div>
                    <div class="form-group row p-2">
                        <label class="col-sm-2 control-label">使用麵包屑導航</label>
                        <div class="col-sm-10">
                            <?php
                            $checked = $settings['use_breadcrumb'] ? ' checked="checked"' : '';
                            ?>
                            <input type="checkbox" name="use_breadcrumb" class="form-control" value="1"<?=$checked;?> />
                        </div>
                    </div>
                    <div class="form-group row p-2">
                        <label class="col-sm-2 control-label">使用頁腳</label>
                        <div class="col-sm-10">
                            <?php
                            $checked = $settings['use_footer'] ? ' checked="checked"' : '';
                            ?>
                            <input type="checkbox" name="use_footer" class="form-control" value="1"<?=$checked;?> />
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 control-label">背景圖</label>
                        <div class="col-sm-10 ">
                            <?php
                            if ($settings['background_image'] != '') {
                                ?>
                                <img src="<?=base_url($settings['background_image']);?>" width="500"
                                     height="auto" />
                                <?php
                            }
                            ?>
                            <p class="">圖片尺寸(1920px x 618px)</p>
                            <input type="file" name="background_image" id="background_image"
                                   class="input_photo form-control " style="width: auto;"/>

                        </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="重設">
                            <input type="hidden" name="id" value="1">
                        </div>
                    </div>
                </form>

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

<!-- /Page Body -->
