<!-- Main Content -->

<div class="page-wrapper">

    <div class="container-fluid pt-25">

        <div class="row">

            <div class="col-md-12">

                <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >

                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                    <?php echo $this->session->flashdata('message'); ?>

                </div>

            </div>

        </div>

        <!-- Row -->

        <div class="row">

            <div class="col-md-6 col-md-offset-3 panel panel-default card-view pb-30">

                <div class="box box-info">

                    <div class="box-header with-border col-md-offset-4">

                        <h3 class="box-title ">Order Report</h3><br>

                    </div>

                    <form class="form-horizontal" action="<?php echo base_url(A."/order-report"); ?>" method="post">

                        <div class="box-body">

                            <div class="form-group">

                                <label class="col-sm-4 control-label">Start date </label>

                                <div class="col-sm-6">

                                    <input class="form-control start_dt" type="text" value="" name="order_start" />

                                </div>

                            </div>

                            <div class="form-group">

                                <label class="col-sm-4 control-label">End date </label>

                                <div class="col-sm-6">

                                    <input class="form-control end_dt" type="text" value="" name="order_end" />

                                </div>

                            </div>

                            <div class="form-group">

                                <label class="col-sm-4 control-label">Invoice No.</label>

                                <div class="col-sm-6">

                                    <input class="form-control" type="text" value="" name="invoice_no" />

                                </div>

                            </div>

                            <!-- <div class="form-group">

                                <label class="col-sm-4 control-label">Mobile Number</label>

                                <div class="col-sm-6">

                                    <input class="form-control" type="text" value="" name="mobile_no" />

                                </div>

                            </div> -->

                            <div class="form-group">

                                <label class="col-sm-4 control-label">Email</label>

                                <div class="col-sm-6">

                                    <input class="form-control" type="text" value="" name="email" />

                                </div>

                            </div>

                            <div class="form-group">

                                <label class="col-sm-4 control-label">Category</label>

                                <div class="col-sm-6">

                                    <select class="form-control" name="category">

                                        <option value="">Select Category</option>

                                        <?php if($category){ foreach($category as $key=>$value) : ?>

                                            <option value="<?php echo $value['c_id'] ?>"><?php echo $value['category'] ?></option>

                                        <?php endforeach; } ?>

                                    </select>

                                </div>

                            </div>

                            <div class="form-group">

                                <label class="col-sm-4 control-label">Order Status</label>

                                <div class="col-sm-6">

                                    <select class="form-control" name="order_status">

                                        <option value="">Select Order Status</option>

                                        <?php if($order_status){ foreach($order_status as $key=>$value) : ?>

                                            <option value="<?php echo $value['os_id'] ?>"><?php echo $value['order_status_name'] ?></option>

                                        <?php endforeach; } ?>

                                    </select>

                                </div>

                            </div>
                            <div class="form-group">

                                <label class="col-sm-4 control-label">Order Payment Method</label>

                                <div class="col-sm-6">

                                    <select class="form-control" name="payment_method">

                                        <option value="">Select Payment Method</option>

                                            <!-- <option value="1">Cash On Delivery</option> -->
                                            <option value="2">PayNow</option>
                                            <option value="3">Omise</option>

                                    </select>

                                </div>

                            </div>

                        </div>

                        <div class="box-footer text-center">
                            <div class="col-sm-4"></div>
                            <div class="col-sm-6">
                                <button type="submit" class="btn btn-info btn-block">Search</button>
                            </div>
                        </div>

                    </form>

                </div>

            </div>

        </div>
        

        <!-- /Row -->

    </div>