<!-- MENU NAVBAR HEADER-->
<?php echo Modules::run('menuadmin/menubyactive',4);?>
<!-- /MENU NAVBAR HEADER -->

<section id="middle">


    <!-- page title -->
    <header id="page-header">
        <h1>Menu</h1>
        <ol class="breadcrumb">
            <li><a href="#">Menu</a></li>
            <li class="active"><?php echo $item!=NULL?"Edit":"Add"?></li>
        </ol>
    </header>
    <!-- /page title -->


    <div id="content" class="padding-20">

        <div class="row">
            <div class="panel panel-default">
                <div class="panel-heading panel-heading-transparent">
                    <strong><?php echo $item!=NULL?"Edit":"Add"?> Menu</strong>

                </div>

                <div class="panel-body">

                    <form class="validate" id="featureform" action="<?php echo base_url()?>feature/add" method="post" enctype="multipart/form-data" data-success="Sent! Thank you!" data-toastr-position="top-right">

                        <fieldset>
                            <!-- required [php action request] -->
                            <input type="hidden" name="id" value="<?php echo @$item->id?>" />

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


                                    <div class="row">
                                        <div class="form-group">
                                            <div class="col-md-12 col-sm-12">
                                                <label>Feature Product *</label>
                                                <select name="product_id" class="form-control pointer required">
                                                    <?php echo dropdown_option(@$product,@$item->product_id)?>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="form-group">
                                            <div class="col-md-12 col-sm-12">
                                                <label>Feature Order</label>
                                                <input type="text" name="order" value="<?php echo @$item->order?>" class="form-control required">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="form-group">
                                            <div class=" col-md-12 col-sm-12" align="right">
                                                <label class="switch switch switch-round">
                                                    <span> Active to public on the web?</span>

                                                    <input name="is_active" type="checkbox" <?php echo @$item->is_active=='Y'?'checked=""':''?> >
                                                    <span class="switch-label" data-on="Yes" data-off="No"></span>
                                                </label>
                                            </div>

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

                        </fieldset>

                        <div class="row">
                            <div class="col-md-12">
                                <button id="savebtn" type="submit" form="featureform" value="Submit" class="progress-button btn btn-3d btn-teal btn-xlg btn-block margin-top-30" >
                                    SAVE
                                </button>
                            </div>
                        </div>

                    </form>

                </div>

            </div>
        </div>

    </div>
</section>