<ol class="breadcrumb pull-right">
    <li><a href="<?php echo site_url('admin/dashboard') ?>">Home</a></li>
    <li class="active">Setting and SEO</li>
</ol>
<h1 class="page-header">Setting and SEO</h1>
<div class="section-container section-with-top-border p-b-5">
    <div class="row">
        <div class="col-md-12">
            <?php echo form_open_multipart(false, 'class="form-horizontal" data-validate="parsley"') ?>
            <?php if (validation_errors()): ?>
                <div class="form-group">
                    <div class="alert alert-danger">
                        <?php echo validation_errors() ?>
                    </div>
                </div>
            <?php endif ?> 
            <div class="panel">
                <ul class="nav nav-tabs nav-tabs-primary nav-justified">
                    <li class="active">
                        <a href="#setting" data-toggle="tab">
                            <span><i class="fa fa-cogs"></i></span>
                            <span class="hidden-xs">Setting</span>
                        </a>
                    </li>
                    <li>
                        <a href="#seo" data-toggle="tab">
                            <span><i class="fa fa-line-chart"></i></span>
                            <span class="hidden-xs">SEO</span>
                        </a>
                    </li>
                    <li>
                        <a href="#contactinfo" data-toggle="tab">
                            <span><i class="fa fa-envelope-o"></i></span>
                            <span class="hidden-xs">Contact Info</span>
                        </a>
                    </li>
                    <li>
                        <a href="#social-media" data-toggle="tab">
                            <span><i class="fa fa-share-alt"></i></span>
                            <span class="hidden-xs">Social Media Acc.</span>
                        </a>
                    </li>
                </ul>
                <div class="tab-content m-b-0">
                    <div class="tab-pane fade active in" id="setting">
                        <div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><?php echo lang('settings_title') ?></label>
                                <div class="col-sm-10">
                                    <?php echo form_input('setting[title]', set_value('setting[title]', $item->title), 'class="bg-focus form-control" data-required="true" id="title"') ?>
                                </div>
                            </div>
                            <div class="form-group-separator"></div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">Website Logo</label>
                                <div class="compose-message-editor col-sm-8">
                                    <input type="file" class="form-control" name="logo">
                                </div>

                                <div class="col-sm-2">
                                    <?php if (config('logo')): ?>
                                        <img src="<?php echo base_url() ?>/cdn/about/<?php echo config('logo') ?>" class="img-inline userpic-32" width="40"/>
                                    <?php endif ?>
                                </div>
                            </div>
                            <div class="form-group-separator"></div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">Website Favicon </label>
                                <div class="compose-message-editor col-sm-8">
                                    <input type="file" class="form-control" name="favicon">
                                </div>
                                <div class="col-sm-2">
                                    <?php if (config('favicon')): ?>
                                        <img src="<?php echo base_url() ?>/cdn/about/<?php echo config('favicon') ?>" class="img-inline userpic-32" width="40"/>
                                    <?php endif ?>
                                </div>

                            </div>
                            <div class="form-group-separator"></div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">Copyright</label>
                                <div class="col-sm-10">
                                    <?php echo form_input('setting[copyright]', set_value('setting[copyright]', $item->copyright), 'class="bg-focus form-control" data-required="true" id="copyright"') ?>
                                </div>
                            </div>
                            <div class="form-group-separator"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">Disqus Username</label>
                                <div class="col-sm-10">
                                    <?php echo form_input('setting[disqus_username]', set_value('setting[disqus_username]', $item->disqus_username), 'class="bg-focus form-control" data-required="true" id="disqus_username"') ?>
                                </div>
                            </div>
                            <div class="form-group-separator"></div>
                        </div>

                    </div>
                    <div class="tab-pane fade" id="seo">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Meta Keywords</label>
                            <div class="compose-message-editor col-sm-10">
                                <textarea style="height: 100px;" class="form-control" name="setting[meta_keywords]"><?php echo set_value('setting[meta_keywords]', $item->meta_keywords) ?></textarea>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">Meta Description</label>
                            <div class="compose-message-editor col-sm-10">
                                <textarea style="height: 150px;" class="form-control" name="setting[meta_description]"><?php echo set_value('setting[meta_description]', $item->meta_description) ?></textarea>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>
                    </div>

                    <div class="tab-pane fade" id="contactinfo">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Webmaster Email</label>
                            <div class="col-sm-10">
                                <?php echo form_input('setting[webmaster_email]', set_value('setting[webmaster_email]', $item->webmaster_email), 'class="bg-focus form-control" data-required="true" id="webmaster_email"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Address</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[address]', set_value('setting[address]', $item->address), 'class="bg-focus form-control" data-required="true" id="address"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Phone</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[phone]', set_value('setting[phone]', $item->phone), 'class="bg-focus form-control" data-required="true" id="phone"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Whatsapp</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[whatsapp]', set_value('setting[whatsapp]', $item->whatsapp), 'class="bg-focus form-control" data-required="true" id="whatsapp"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Skype</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[skype]', set_value('setting[skype]', $item->skype), 'class="bg-focus form-control" data-required="true" id="skype"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                    </div>
                    <div class="tab-pane fade" id="social-media">
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Facebook Account</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[facebook]', set_value('setting[facebook]', $item->facebook), 'class="bg-focus form-control" data-required="true" id="facebook"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Twitter Account</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[twitter]', set_value('setting[twitter]', $item->twitter), 'class="bg-focus form-control" data-required="true" id="twitter"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Instagram Account</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[instagram]', set_value('setting[instagram]', $item->instagram), 'class="bg-focus form-control" data-required="true" id="instagram"') ?>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="field-1"> Youtube Account</label>

                            <div class="col-sm-10">
                                <?php echo form_input('setting[youtube]', set_value('setting[youtube]', $item->youtube), 'class="bg-focus form-control" data-required="true" id="youtube"') ?>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label"></label>

                        <div class="col-sm-10">
                            <button type="submit" class="btn btn-lime" name="submit"><i class="fa fa-check-circle"></i> Submit</button>
                            <a href="<?php echo site_url('admin/dashboard'); ?>" class="btn btn-danger"><i class="fa fa-ban"></i> Cancel</a>
                        </div>
                    </div>
                </div>
            </div>
            <?php echo form_close() ?>
        </div>
    </div>
</div>
