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



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



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



<div class="row">



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



		<div class="home-item">



			<h1 class="item-header">Thông báo</h1>



			<?php foreach($list_news as $v): ?>



			<div class="media">



				<div class="media-left" >



					<a href="<?php echo e(url('admin/edit-news/'.$v->id)); ?>">



						<img src="<?php echo e(url('public/images/user.png')); ?>" class="img-circle" alt="" style="margin-bottom: 5px;" width="50px">



					</a>



					<?php if($v->user_name!=""): ?>



					<b><?php echo e($v->user_name); ?></b>



					<?php else: ?> 



					<b><?php echo e($v->acc_name); ?></b>



				<?php endif; ?>



				</div>



				<div class="media-body">



					<p class="media-heading">Đã đăng bài: <b><a href="<?php echo e(url('admin/edit-news/'.$v->id)); ?>"><?php echo e($v->title); ?></a></b></p>



					<p>Vào lúc: <b><?php echo e(date('H:i',$v->time)); ?> <?php echo e(date('d-m-Y',$v->time)); ?></b></p>



				</div>



			</div>



			<hr style="margin: 10px">



			<?php endforeach; ?>







			<?php foreach($list_page as $v): ?>



			<div class="media">



				<div class="media-left" >



					<a href="<?php echo e(url('admin/edit-page/'.$v->id)); ?>">



					<img src="<?php echo e(url('public/images/user.png')); ?>" class="img-circle" alt="" style="margin-bottom: 5px;" width="50px">



					</a>



					<?php if($v->user_name!=""): ?>



					<b><?php echo e($v->user_name); ?></b>



					<?php else: ?> 



					<b><?php echo e($v->acc_name); ?></b>



				<?php endif; ?>



				</div>



				<div class="media-body">



					<p class="media-heading">Đã đăng bài: <b><a href="<?php echo e(url('admin/edit-page/'.$v->id)); ?>"><?php echo e($v->title); ?></a></b></p>



					<p>Vào lúc: <b><?php echo e(date('H:i',$v->time)); ?> <?php echo e(date('d-m-Y',$v->time)); ?></b></p>



				</div>



			</div>



			<hr style="margin: 10px">



			<?php endforeach; ?>



		</div>



	</div>







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



		<div class="home-item">



			<h1 class="item-header">Liên kết nhanh</h1>



			<div class="row placeholders">



				<div class="col-xs-6 col-sm-3 placeholder">



					<a href="<?php echo e(url('admin/add-product')); ?>"><i class="fa fa-product-hunt fa-5x" aria-hidden="true"></i>



						<br>



						<span class="text-muted">Thêm sản phẩm</span></a>



					</div>



					<div class="col-xs-6 col-sm-3 placeholder">



						<a href="<?php echo e(url('admin/add-news')); ?>"><i class="fa fa-newspaper-o fa-5x" aria-hidden="true"></i>



							<br>



							<span class="text-muted">Thêm bài viết</span></a>



						</div>



						<div class="col-xs-6 col-sm-3 placeholder">



							<a href="<?php echo e(url('admin/list-cate-product')); ?>"><i class="fa fa-calendar-minus-o fa-5x" aria-hidden="true"></i>



								<br>



								<span class="text-muted">Danh mục sản phẩm</span></a>



							</div>



							<div class="col-xs-6 col-sm-3 placeholder">



								<a href="<?php echo e(url('admin/list-news-category')); ?>"><i class="fa fa-list-alt fa-5x" aria-hidden="true"></i>



									<br>



									<span class="text-muted">Danh mục bài viết</span></a>



								</div>



							</div>



						</div>



						<div class="home-item">



							<h1 class="item-header">Thông tin công ty</h1>



							<div class="row placeholders">



								<form class="form-horizontal" method="post" action="">



									<div class="form-group">



										<label class="col-sm-3 control-label">Tên công ty</label>



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



											<input type="text" readonly="true" class="form-control" name="name" value="<?php echo e($site_option->name); ?>">



										</div>



									</div>



									<div class="form-group">



										<label class="col-sm-3 control-label">Địa chỉ</label>



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



											<textarea rows="3" readonly="true" class="form-control" name="address"><?php echo e($site_option->address); ?></textarea>



										</div>



									</div>



									<div class="form-group">



										<label class="col-sm-3 control-label">Điện thoại</label>



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



											<input type="text" readonly="true" class="form-control" name="hotline1" value="<?php echo e($site_option->hotline1); ?>">



										</div>



									</div>



									<div class="form-group">



										<label class="col-sm-3 control-label">Email</label>



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



											<input type="text" readonly="true" class="form-control" name="email" value="<?php echo e($site_option->email); ?>">



										</div>



									</div>



									<div class="form-group">



										<label class="col-sm-3 control-label">Website</label>



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



											<input type="text" readonly="true" class="form-control" name="website" value="<?php echo e($site_option->url); ?>">



										</div>



									</div>



								</form>



							</div>



						</div>



						<br>



					</div>



				</div>



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



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