<div class="col-sm-8 col-md-5 col-lg-4 col-xl-3 offset-xl-1 offset-0 pl-xl-0 sidebar">
	<!-- widget -->
	<div class="widget">
		<form class="search-widget" action="{{route('fe.blog_search')}}" method="GET" enctype="multipart/form-data">
			<input type="text" name="keyword" id="keyword" placeholder="Search...">
			<button><i class="ti-search"></i></button>
		</form>
	</div>
	<!-- widget -->
	<div class="widget">
		<h5 class="widget-title">Recent News</h5>
		<div class="recent-post-widget">
			@foreach($recent as $row)
			<!-- recent post -->
			<div class="rp-item">
				<div class="rp-thumb set-bg" data-setbg="<?php if($row->picture != NULL){ echo url('assets/files/blog/'.$row->picture.'?time='.time()); }else{ echo url('assets/frontend/img/no-picture.png?time='.time()); } ?>"></div>
				<div class="rp-content">
					<h6><?php echo strip_tags(substr($row->content, 0, 100)); ?>... <a href="{{ url('blog') }}/{{ $row->slug }}">Read more</a></h6>
					<p><i class="fa fa-clock-o"></i> {{ Helper::tgl_indo($row->created_at) }}</p>
				</div>
			</div>
			@endforeach
		</div>
	</div>
</div>
