<?php echo $header; ?>
<?php echo $column_left; ?>
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-manufacturer" data-toggle="tooltip" title="Kayıt" class="btn btn-primary"><i class="fa fa-save"></i></button>
                <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="İptal" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
            <h1><?php echo $heading_title; ?></h1>
            <ul class="breadcrumb">
                <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                <?php } ?>
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        <?php if ($error_warning) { ?>
        <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
        <?php } ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $heading_title; ?></h3>
            </div>
            <div class="panel-body">
                <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-manufacturer" class="form-horizontal">


                    <div class="tab-content">
                        <div class="tab-pane active" id="tab-general">

                            

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-user-cari">User Cari</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_user_cari" value="<?= $suratkargo_user_cari; ?>" placeholder="User Cari" id="input-user-cari" class="form-control" />
                                </div>
                            </div>

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-user-password">User Şifre</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_user_password" value="<?= $suratkargo_user_password; ?>" placeholder="User Şifre" id="input-user-password" class="form-control" />
                                </div>
                            </div>

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-webservice-password">Webservis Şifre</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_webservice_password" value="<?= $suratkargo_webservice_password; ?>" placeholder="Webservice Şifre" id="input-webservice-password" class="form-control" />
                                </div>
                            </div>

                            <!-- KÖ Cari -->

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-user-ko-cari">User KÖ Cari</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_user_ko_cari" value="<?= $suratkargo_user_ko_cari; ?>" placeholder="User KÖ Cari" id="input-user-ko-cari" class="form-control" />
                                </div>
                            </div>

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-user-ko-password">User KÖ Şifre</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_user_ko_password" value="<?= $suratkargo_user_ko_password; ?>" placeholder="User KÖ Şifre" id="input-user-ko-password" class="form-control" />
                                </div>
                            </div>

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-webservice-ko-password">Webservis KÖ Şifre</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_webservice_ko_password" value="<?= $suratkargo_webservice_ko_password; ?>" placeholder="Webservice KÖ Şifre" id="input-webservice-ko-password" class="form-control" />
                                </div>
                            </div>

                            <!-- KÖ Cari -->


                            <!-- Özel Takip Kodları -->

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-follow-code">Özel Takip Kodu</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_follow_code" value="<?= $suratkargo_follow_code; ?>" placeholder="Özel Takip Kodu" id="input-follow-code" class="form-control" />
                                </div>
                            </div>

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-follow-ko-code">Özel Takip KÖ Kodu</label>
                                <div class="col-sm-10">
                                    <input type="text" name="suratkargo_follow_ko_code" value="<?= $suratkargo_follow_ko_code; ?>" placeholder="Özel Takip KÖ Kodu" id="input-follow-ko-code" class="form-control" />
                                </div>
                            </div>

                            <!-- Özel Takip Kodları -->


                            

                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="" data-original-title="Kapıda Tahsilat durumunda sipariş bedeli kargo kaydına aktarılır">Tahsilatlı kargo Ödeme Metodları</span></label>
                                <div class="col-sm-10">
                                    <div class="well well-sm" style="height: 150px; overflow: auto;">
                                        <?php foreach($payment_methods as $pay){ ?>
                                        <div class="checkbox">
                                            <label> <?php if( in_array($pay['code'], $suratkargo_pays) ){ ?>
                                                <input type="checkbox" name="suratkargo_pays[]" value="<?=$pay['code']?>" checked="checked" />
                                                <?=$pay['name']?>
                                                <?php }else{ ?>
                                                <input type="checkbox" name="suratkargo_pays[]" value="<?=$pay['code']?>" />
                                                <?=$pay['name']?>
                                                <?php } ?> </label>
                                        </div>
                                        <?php } ?> </div>
                                </div>
                            </div><!-- config_aras_pays -->

                            <div class="form-group">
                                <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="" data-original-title="Kapıda Kartla Ödeme Metodu durumunda sipariş bedeli kargo kaydına aktarılır">Kapıda Kartla Ödeme Metodları</span></label>
                                <div class="col-sm-10">
                                    <div class="well well-sm" style="height: 150px; overflow: auto;">
                                        <?php foreach($payment_methods as $pay){ ?>
                                        <div class="checkbox">
                                            <label> <?php if( in_array($pay['code'], $suratkargo_pays_c) ){ ?>
                                                <input type="checkbox" name="suratkargo_pays_c[]" value="<?=$pay['code']?>" checked="checked" />
                                                <?=$pay['name']?>
                                                <?php }else{ ?>
                                                <input type="checkbox" name="suratkargo_pays_c[]" value="<?=$pay['code']?>" />
                                                <?=$pay['name']?>
                                                <?php } ?> </label>
                                        </div>
                                        <?php } ?> </div>
                                </div>
                            </div><!-- config_aras_pays_c -->

                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="input-order-status"><span data-toggle="tooltip" title="Kargolama işleminin ardından sipariş durumunun atanacağı kod">Kargolandı Durum Kodu</span></label>
                                <div class="col-sm-10">
                                    <select name="suratkargo_order_status_id" id="input-order-status" class="form-control">
                                        <?php foreach($order_statuses as $order_status){ ?>
                                        <?php if ( $suratkargo_order_status_id == $order_status['order_status_id'] ){ ?>
                                        <option value="<?=$order_status['order_status_id']?>" selected="selected"><?=$order_status['name']?></option>
                                        <?php } else { ?>
                                        <option value="<?=$order_status['order_status_id']?>"><?=$order_status['name']?></option>
                                        <?php } ?>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div><!-- config_aras_status_id -->




                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="input-status">Status</label>
                                <div class="col-sm-10">
                                    <select name="suratkargo_status" id="input-status" class="form-control">
                                        <?php if ($suratkargo_status) { ?>
                                        <option value="1" selected="selected">Açık</option>
                                        <option value="0">Kapalı</option>
                                        <?php } else { ?>
                                        <option value="1">Açık</option>
                                        <option value="0" selected="selected">Kapalı</option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>

                        </div>



                </form>
            </div>
        </div>
    </div>
</div>




<?php echo $footer; ?>