<?php
    $ci =& get_instance();
    $ci->load->library("encrypt");
?>
<form class="form-horizontal az-form" name="form" method="post" id="form_sales_transaction" action="<?php echo app_url();?>sales_transaction/export_excel" target="_blank">
	<div class="form-group element-top-filter" data-id="<?= $ci->encrypt->encode("date");?>">
        <label for="" class="col-sm-2 control-label"><?php echo azlang('Date');?></label>
        <div class="col-sm-6">
            <div class="row">
                <div class="col-sm-6">
                    <?php echo $datetime1;?>
                </div>
                <div class="col-sm-2 div-between-col">
                	s/d
                </div>
                <div class="col-sm-6">
                	<?php echo $datetime2;?>
                </div>
            </div>
        </div>
    </div>
    <?php 
        if (strlen($this->session->userdata('idoutlet')) == 0) {
    ?>
    <div class="form-group">
        <label for="" class="col-sm-2 control-label"><?php echo azlang('Outlet');?></label>
        <div class="col-sm-6">
            <?php echo $outlet;?>
        </div>
    </div>
    <?php
        }
    ?>
    <div class="form-group">
        <label for="" class="col-sm-2 control-label"><?php echo azlang('Customer');?></label>
        <div class="col-sm-6">
            <?php echo az_select_customer('customer', 'transaction_group');?>
        </div>
    </div>
    <div class="form-group">
        <label for="" class="col-sm-2 control-label"><?php echo azlang('Invoice Code');?></label>
        <div class="col-sm-6">
            <input type="text" id="filter_code" name="filter_code" class="form-control element-top-filter" data-id="<?php echo $ci->encrypt->encode('transaction_group.code');?>">
        </div>
    </div>
    <div class="form-group">
        <label for="" class="col-sm-2 control-label">Status Transaksi</label>
        <div class="col-sm-6">
            <select class="form-control element-top-filter" name="status" data-w="true" data-id="<?php echo $ci->encrypt->encode('dstb_status');?>">
                <option value="">SEMUA</option>
                <option value="BARU">BARU</option>
                <option value="DIJEMPUT">DIJEMPUT</option>
                <option value="DIPROSES">DIPROSES</option>
                <option value="DIANTAR">DIANTAR</option>
                <option value="END PROCESS">END PROCESS</option>
                <option value="SELESAI">SELESAI</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="" class="col-sm-2 control-label">Status Proses</label>
        <div class="col-sm-6">
            <select class="form-control element-top-filter" name="process_status" data-w="true" data-id="<?php echo $ci->encrypt->encode('process_status');?>">
                <option value="">Semua</option>
                <option value="Menunggu Driver">Menunggu Driver</option>
                <option value="Penjemputan">Penjemputan</option>
                <option value="Produksi">Produksi</option>
                <option value="Pengantaran">Pengantaran</option>
                <option value="Selesai">Selesai</option>
            </select>
        </div>
    </div>
</form>