<ul class="breadcrumb">
    <li><a href="<?= site_url('admin/dashboard') ?>">Home</a></li> 
    <li class="active"><?php echo isset($pkg_item_id) ? $breadcum_edit : $breadcum ?></li> 
</ul>
<div class="page-content-wrap">
    <div class="row">
        <div class="col-md-12">
            <form action="" class="form-horizontal" method="post" enctype="multipart/form-data">
                <div class="panel panel-default">
                    <div class="panel-heading">                       
                        <h3 class="panel-title"><?php if ($pkg_item_id) { ?>Edit<?php } else { ?> Add<?php } ?> Menu Item</h3>
                        <ul class="panel-controls">
                            <li><a href="<?php echo site_url() ?>admin/catering-item-list"><span class="fa fa-backward" title="Back"></span></a></li>
                        </ul>
                    </div>

                    <div class="panel-body form-group-separated">                        

<!--                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Package</label>
                            <div class="col-md-9 col-xs-12">
                                <select class="form-control select"  data-live-search="true"  name="package_id" >  
                                    <option value="">Select Package</option>
                                    <?php foreach ($package_data as $package) { ?>
                                        <option value="<?= $package['package_id'] ?>" <?php if ($package['package_id'] == $package_id) { ?> selected="selected" <?php } ?>><?= $package['name'] ?>
                                           </option>  
                                    <?php } ?>
                                </select>
                            </div>
                        </div>-->
                        
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Package Category</label>
                            <div class="col-md-9 col-xs-12">
                                <select class="form-control select"  data-live-search="true"  name="category_id" >  
                                    <option value="">Select Package category</option>
                                    <?php foreach ($category_data as $category) { ?>
                                        <option value="<?= $category['pkg_cat_id'] ?>" <?php if ($category['pkg_cat_id'] == $category_id) { ?> selected="selected" <?php } ?>><?= $category['pkg_cat_name'] ?>
                                            (<?= $this->common_model->getSingleFieldFromAnyTable('province_name', 'province_id', $category['province_id'], 'tbl_province') ?>)</option>  
                                    <?php } ?>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Catering Item Name</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" name="item_name" class="form-control" value="<?= $item_name ?>"/>
                                </div>                                            
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('item_name')) ?></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Catering Item Price</label>
                            <div class="col-md-6 col-xs-12">                                            
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" name="price" class="form-control" value="<?= $price ?>"/>
                                </div>                                            
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('price')) ?></span>
                            </div>
                        </div>

                    </div>
                    <div class="panel-footer">
                        <button class="btn btn-default" type="reset">Clear Form</button>                                    
                        <button class="btn btn-primary pull-right">Submit</button>
                    </div>
                </div>
            </form>
        </div>
    </div> 
</div>
<script type="text/javascript" src="<?php echo $this->config->item('ckeditor_basepath'); ?>ckeditor.js"></script>
