<script type="text/javascript" src="<?php echo $this->config->item('ckeditor_basepath'); ?>ckeditor.js"></script>
<ul class="breadcrumb">
    <li><a href="<?= site_url('admin/dashboard') ?>">Home</a></li> 
    <li class="active"><?php echo $breadcum ?></li> 
</ul>
<div class="page-header-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 echo $breadcum; ?></h3>
                        <ul class="panel-controls">
                            <li><a href="<?php echo site_url() ?>admin/footer-link-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">Link Title</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="link_title" class="form-control" value="<?= $link_title ?>"/>
                                </div>                                            
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('link_title')) ?></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Link URL</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="link_url" class="form-control" value="<?= $link_url ?>"/>
                                </div>
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('link_url')) ?></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Parent Footer</label>
                            <div class="col-md-6 col-xs-12">                                                                                            
                                <select class="form-control select" data-live-search="true" name="parent_footer">  
                                    <option value="0">Select Parent Footer</option>
                                    <?php foreach ($parent_list as $parent) { ?> 
                                        <option value="<?= $parent['footer_link_id'] ?>"<?php if ($parent['footer_link_id'] == $parent_footer) { ?> selected="selected" <?php } ?>><?= $parent['link_title'] ?></option>  
                                    <?php } ?>
                                </select>                                 
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">Footer Order</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="footer_order" class="form-control" value="<?= $footer_order ?>"/>
                                </div> 
                                <span class="help-block" style="color: red;"><?= strip_tags(form_error('footer_order')) ?></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>