@if(!count($posts))
    <div class="box">
        <div class="box-title">{{trans('search.post-results')}}</div>
        <div class="box-content">
            <div class="alert alert-danger">{{trans('search.no-post', ['term' => $searchRepository->term])}}</div>
        </div>
    </div>
@endif

<div data-offset="{{\Config::get('post-per-page')}}" data-type="search-{{$searchRepository->term}}"  id="post-list">

                @foreach($posts as $post)
                    {{Theme::section('post.media', ['post' => $post])}}
                @endforeach

</div>

@if(count($posts))
    <a class="post-load-more" href="">{{trans('post.load-more')}}</a>
@endif