 
<?php $__env->startSection('content'); ?>
	<div class="row">
    	<div class="col-lg-12">
    		<h1 class="page-header">Knowledge Base</h1>
    	</div>
    </div>
    <div class="row">


                   <div class="col-lg-12">
                    <div class="panel panel-default">
                    	<?php if(session('status')): ?>
							<div class="alert alert-success">
								<?php echo e(session('status')); ?>

							</div>
						<?php endif; ?>
			
						<?php if(count($errors) > 0): ?>
							<div class="alert alert-danger">
								<strong>Whoops!</strong> There were some problems with your input.<br><br>
								<ul>
									<?php foreach($errors->all() as $error): ?>
										<li><?php echo e($error); ?></li>
									<?php endforeach; ?>
								</ul>
							</div>
						<?php endif; ?>
                      <div class="panel-heading">
                           <?php echo e($article->title); ?>

                           <?php if(Auth::user()->checkPermission(31)): ?>
                                <a href="<?php echo e(url('uadmin/kb/edit/'.$article->id)); ?>"> <i class="fa fa-edit fa-fw" style="float: right;"></i> </a>
                           <?php endif; ?>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            
                            <?php echo $article->getContent(); ?>


                            <br><br>

                            <i>Keywords: <?php echo e($article->keywords); ?></i>

                            <br><br>

                            <i>Attachments: 
                                <?php $__empty_1 = true; foreach(\App\Kb_attachment::where('article_id','=',$article->id)->get() as $attachment): $__empty_1 = false; ?>
                                    <?php echo "<a href='".url('uadmin/kb/attachment/'.$attachment->id)."' target='_blank'>".$attachment->title."</a>"; ?>,&nbsp;
                                <?php endforeach; if ($__empty_1): ?>
                                    (none)
                                <?php endif; ?>
                            </i>

                        </div>
                 </div>
             </div>
         </div>


 
               
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extras'); ?>

    
    <style>
    	a:hover{
    		text-decoration: none;
    	}
    	.odd .subBack {
    		background-color: #f0fcff;
    	}
    	.even .subBack {
    		background-color: #ecf7fa;
    	}
    	.floatLeft
    	{
    		float: left;
    	}

    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('bottom'); ?>



<?php $__env->stopSection(); ?>




<?php echo $__env->make('residential.templates.uadmin', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>