I want to hide the title if there is no data show in foreach result. so, where should i place the section title?
this is the code
<div class="title">
//section title
<div class="navigation-bar">
<h3>Title</h3>
</div>
@foreach($similar_posts as $related_post)
//data
@endforeach
</div>
thanks