<div class="row">
    <div class="col-sm-12 col-md-12">
        <div class="card">
            <div class="card-header">
                <div class="card-title">
                    <h4><?php echo (!empty($title)?$title:null) ?></h4>
                </div>
            </div>
            <div class="card-body">


                <?php  
				echo form_open_multipart("ordermanage/menu_addons/create") ?>

                <?php  echo form_hidden('id',$this->session->userdata('id')); ?>
                <?php echo form_hidden('add_on_id', (!empty($addonsinfo->add_on_id)?$addonsinfo->add_on_id:null)) ?>
                <div class="row">
                    <div class="col-lg-6">
                        <div class="form-group row">
                            <label for="firstname" class="col-sm-4 col-form-label"><?php echo display('addons_name');?> <span class="text-danger">*</span></label>
                            <div class="col-sm-8">
                                <input name="addonsname" class="form-control" required type="text" placeholder="<?php echo display('addons_name');?>"
                                    id="addonsname"
                                    value="<?php echo (!empty($addonsinfo->add_on_name)?$addonsinfo->add_on_name:null) ?>">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="firstname" class="col-sm-4 col-form-label"><?php echo display('price');?> <span class="text-danger">*</span></label>
                            <div class="col-sm-8">
                                <input name="addonsprice" class="form-control" required type="text" placeholder="Add-ons Price"
                                    id="addonsprice"
                                    value="<?php echo (!empty($addonsinfo->price)?$addonsinfo->price:null) ?>">
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <?php if(!empty($taxitems)){
                        $tx=0;
                        foreach ($taxitems as $taxitem) {
                           $field_name = 'tax'.$tx; 
                        ?>
                        <div class="form-group row">
                            <label for="vat" class="col-sm-3 col-form-label"><?php echo $taxitem['tax_name'];?></label>
                            <div class="col-sm-9">

                                <input name="<?php echo $field_name;?>" type="text" class="form-control"
                                    id="<?php echo $field_name;?>" placeholder="<?php echo $taxitem['tax_name'];?>"
                                    autocomplete="off"
                                    value="<?php echo (!empty($addonsinfo->$field_name)?$addonsinfo->$field_name:null) ?>" />
                            </div>
                        </div>
                        <?php
                        $tx++;
                        }
                    }
                    ?>
                        <div class="form-group row">
                            <label for="lastname" class="col-sm-3 col-form-label"><?php echo display('status');?></label>
                            <div class="col-sm-9">
                                <select name="status" class="form-control basic-single">
                                    <option value="" selected="selected"><?php echo display('select_option');?></option>
                                    <option value="1"
                                        <?php if(!empty($addonsinfo)){if($addonsinfo->is_active==1){echo "Selected";}} else{echo "Selected";} ?>>
                                        <?php echo display('active');?></option>
                                    <option value="0"
                                        <?php if(!empty($addonsinfo)){if($addonsinfo->is_active==0){echo "Selected";}} ?>>
                                        <?php echo display('inactive');?></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group text-right">
                            <button type="reset" class="btn btn-primary w-md m-b-5"><?php echo display('reset');?></button>
                            <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('save');?></button>
                        </div>
                    </div>
                </div>
                <?php echo form_close() ?>

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