<!-- 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>

        <div class="row">

            <div class="col-md-3"></div>
            <div class="col-md-6">

                <div class="panel panel-default card-view">

                    <div class="panel-heading">

                        <div class="pull-left">

                            <h6 class="panel-title txt-dark">Add Reward Point</h6>

                        </div>

                        <div class="clearfix"></div>

                    </div>

                    <div class="panel-wrapper collapse in">

                        <div class="panel-body">

                            <form id="couponForm" action="<?php echo base_url(A."/editRewardPoint"); ?>" method="POST">
                            	<input type="hidden" name="id" value="<?php echo $point['id']; ?>">
                                <div class="row">
                                    <div class="form-group col-md-12">
                                        <label class="control-label">Point</label>
                                        <input type="number" class="form-control" name="point" placeholder="Enter Point" required  value="<?php echo $point['point']; ?>" />
                                    </div>
                                    <div class="form-group col-md-12">
                                        <label class="control-label">Offer Percent (%)</label>
                                        <input type="number" class="form-control" name="percent" placeholder="Enter Percent" required  value="<?php echo $point['percent']; ?>"/>
                                    </div>
                                    <div class="form-group col-md-12">
                                        <label class="control-label">Validity (Days)</label>
                                        <input type="text" class="form-control" name="expire_days" placeholder="Enter No. of days" required  value="<?php echo $point['expire_days']; ?>"/>
                                    </div>
                                    <div class="form-group col-md-12 text-center"><br>
                                        <button type="submit" class="btn btn-success btn-anim mt-5">
                                            <i class="icon-rocket"></i><span class="btn-text">Update</span>
                                        </button>
                                    </div>
                                </div>
                            </form>

                        </div>

                    </div>

                </div>  

            </div>

        </div>

	</div>