<div class="box box-widget widget-user" style="margin-bottom: 30px">
    <div class="overlay hide">
        <i class="fa fa-refresh fa-spin"></i>
    </div>
    <!-- Add the bg color to the header using any of the bg-* classes -->
    <div class="widget-user-header  bg-default" style=" height: auto;background: #FBFBFB;padding: 10px;">
        <img style="width:100%;height:auto" src="<?php echo e($t_icon); ?>" alt="<?php echo e($t_name); ?>">
    </div>

    <?php
    $t_activethis=false;
    if (file_exists(base_path('storage/.'.$t_code))) {
        $t_activethis=true;
    }
    $t_actfilescont=false;
    if (!empty(config('buzzytheme_'.$t_code.'.t_version'))) {
        $t_actfilescont=true;
    }
    ?>

    <div class="box-footer" style="height: 60px;max-height: 60px; padding: 15px 10px 10px 15px;">
        <div class="row">
            <div class="col-sm-8 border-right">
                <h3 class="widget-user-username" style="font-weight: 500;text-shadow: none">
                    <?php echo e($t_name); ?>


                    <?php if($t_price=='soon'): ?>
                        <span class="badge bg-white" style="margin-left: 10px"><?php echo trans("admin.Notavailabeyet"); ?></span>
                    <?php elseif($t_price=='FREE'): ?>
                        <span class="badge bg-white" style="margin-left: 10px;font-weight:400;color: #969696;background-color: #F0F0F0;"><?php echo trans("admin.FREE"); ?></span>
                    <?php else: ?>
                        <span class="badge bg-green" style="margin-left: 10px"><?php echo e($t_price); ?></span>
                    <?php endif; ?>

                </h3>
                <div class="info">
                    <?php echo $t_weblink == null ? '' : '<a href="'.$t_weblink.'" target="_blank" style="margin-right:10px"><i class="fa fa-globe" style="margin-right:3px"></i> Web site</a>'; ?>

                </div>


                               <!-- /.description-block -->
            </div>
    <?php if ( ! ($t_price=='soon')): ?>


                <div class="col-sm-4" style="text-align: center">

                    <?php if($t_actfilescont==false ): ?>

                        <?php if($t_price!='FREE' and $t_status!='actived' and $t_activethis==false): ?>

                            <button type="button" data-item="<?php echo e($t_code); ?>"  data-img="<?php echo e($t_icon); ?>" data-verify="<?php echo e($t_price!='FREE' ? 'on' : 'off'); ?>" class="btn btn-block btn-warning btn-sm checkcodeforplugin" style="float:right;text-align: left;width: auto;text-align: left;width:auto"><i class="fa fa-unlock" style="margin-right:10px"></i> <?php echo e(trans('admin.ActivateCode')); ?></button>

                        <?php else: ?>

                            <button type="button" data-item="<?php echo e($t_code); ?>" data-verify="<?php echo e($t_price!='FREE' ? 'on' : 'off'); ?>" class="btn btn-block btn-success btn-sm downloadtheme" style="float:right;text-align: left;width: auto;"><i class="fa fa-download" style="margin-right:10px"></i> <?php echo e(trans('admin.download')); ?></button>

                        <?php endif; ?>

                    <?php else: ?>

                        <?php if($t_version!=config('buzzytheme_'.$t_code.'.t_version')): ?>
                            <button type="button" data-item="<?php echo e($t_code); ?>" data-verify="<?php echo e($t_price!='FREE' ? 'on' : 'off'); ?>" class="btn btn-block btn-success btn-sm downloadtheme" style="float:right;text-align: left;width: auto;"><i class="fa fa-download" style="margin-right:10px"></i> <?php echo e(trans('admin.download')); ?> v.<?php echo e($t_version); ?></button>
                        <?php else: ?>

                            <?php if($t_status=='notactived'): ?>
                                <button type="button" data-item="<?php echo e($t_code); ?>" data-verify="<?php echo e($t_price!='FREE' ? 'on' : 'off'); ?>" class="btn btn-block btn-info btn-sm activebuttheme" style="float:right;text-align: left;width: auto;"><i class="fa fa-check" style="margin-right:10px"></i> <?php echo e(trans('admin.Install')); ?></button>
                            <?php else: ?>
                                <button type="button"  class="btn btn-block btn-default btn-sm disabled" style="float:right;text-align: left;width: auto"><i class="fa fa-check"></i> <?php echo trans("admin.Activated"); ?></button>

                                <?php if($t_price!='FREE' and $t_status!='actived' and $t_activethis==false): ?>
                                    <?php echo $t_buylink == null ? '' : '<a href="'.$t_buylink.'" class="btn btn-block btn-success btn-sm"  target="_blank"><i class="fa fa-cart-plus" style="margin-right:10px"></i> '.trans("admin.BuyNow").'</a>'; ?>

                                <?php else: ?>
                                    <?php if($t_settingon): ?>
                                        <a href="<?php echo e(action('Admin\DashboardController@themesetting', [$t_code])); ?>?t=<?php echo e($key); ?>"  class="btn btn-block btn-warning  btn-sm" style="float:right;text-align: left;width: auto;margin: 0 10px 0 0;"><i class="fa fa-cog" style="margin-right:0"></i></a>
                                    <?php endif; ?>
                                <?php endif; ?>

                            <?php endif; ?>

                        <?php endif; ?>




                <?php endif; ?>

                </div>

    <?php endif; ?>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </div>
    <style> .acthover:hover .current{display:none!important} .acthover:hover .hover{display:block!important}</style>
   <?php if($t_settingon): ?>

        <div class="modal modal-info" id="modal<?php echo e($t_code); ?>" <?php if($t_code == "translationmanager"): ?>style="width:100%; overflow:hidden;height:100%" <?php endif; ?>>
            <div class="modal-dialog" <?php if($t_code == "homepagebuilder"): ?>style="width:80%" <?php elseif($t_code == "translationmanager"): ?>style="width:98%; height:100%" <?php endif; ?>>
                <div class="modal-content" <?php if($t_code == "translationmanager"): ?>style="width:100%; height:95%" <?php endif; ?>>
                    <?php echo Form::open(array('action' => 'Admin\ConfigController@setconfig', 'method' => 'POST','style' => 'height:100%;', 'enctype' => 'multipart/form-data')); ?>

                    <?php if($t_code == "easycomment"): ?>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <i class="fa fa-remove"></i></button>
                        <h4 class="modal-title"><?php echo trans("admin.easyCommentPluginSettings"); ?></h4>
                    </div>
                    <div class="modal-body">

                        <div class="form-group">
                            <label class="control-label"><?php echo e(trans("admin.easyCommentTheme")); ?></label>
                            <?php echo Form::select('easyCommentTheme', ['Default' => 'Default','Dark' => 'Dark','Boxed' => 'Boxed','Envato' => 'Envato', 'Blog' => 'Blog'], getenvcong('easyCommentTheme'), ['class' => 'form-control']); ?>

                            <p ><?php echo trans("admin.easyCommentThemeDesc"); ?></p>
                        </div>
                        <div class="form-group">
                            <label class="control-label"><?php echo trans("admin.easyCommentTitle"); ?></label>
                            <input type="text" class="form-control input-lg" name="easyCommentTitle" value="<?php echo e(getenvcong('easyCommentTitle')); ?>">
                            <p ><?php echo trans("admin.easyCommentTitleDesc"); ?></p>
                        </div>
                        <div class="form-group">
                            <label class="control-label"><?php echo trans("admin.easyCommentInitiationUrl"); ?></label>
                            <input type="text" class="form-control input-lg" name="easyCommentcode" value="<?php echo e(getenvcong('easyCommentcode')); ?>">
                        </div>
                    </div>

                    <?php endif; ?><div class="clearfix"></div>

                    <div class="modal-footer">

                        <button type="button" class="btn btn-outline pull-left" data-dismiss="modal"><?php echo trans("admin.close"); ?></button>
                        <input type="submit" value="<?php echo trans("admin.SaveSettings"); ?>" class="btn btn-info btn-outline">

                    </div>

                    <?php echo Form::close(); ?>

                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>

   <?php endif; ?>
</div>
