<!-- Main Content -->

<div class="page-wrapper">

    <div class="container-fluid pt-25">

        <div class="row">

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

                <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >

                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                    <?php echo $this->session->flashdata('message'); ?>

                </div>

            </div>

        </div>

        <!-- Row -->

        <div class="row">

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

                <div class="panel panel-default card-view">

                    <div class="panel-heading">

                        <div class="pull-left">

                            <h6 class="panel-title txt-dark">All Tags</h6>

                        </div>

                        <div class="clearfix"></div>

                    </div>

                    <div class="panel-wrapper collapse in">

                        <div class="panel-body">
                            <?php if (isset($tag) && $tag[0]['product_tag']!='') {
                                $t = explode(',', $tag[0]['product_tag']);
                                if($t){
                                    $t = array_unique($t);
                                    foreach ($t as $key => $value) {
                            ?>
                                <a class="btn btn-info" href="<?php echo base_url('product-tag/'.str_replace('', '-', $value)); ?>" target="_blank" style="margin-left:10px;margin-bottom:10px;"><i class="fa fa-tag"></i> <?php echo $value; ?></a>
                            <?php } } } ?>
                        </div>

                    </div>

                </div>  

            </div>

        </div>

        <!-- /Row -->

    </div>
