@if(Auth::check())
    @if($profileUser->isOwner())
        {{Theme::section('post.editor.main')}}
    @elseif($profileUser->present()->canPost())
        {{Theme::section('post.editor.main', ['to' => $profileUser->id, 'privacy' => 1])}}
    @endif
@endif
<div data-type="profile" data-offset="" data-userid="{{$profileUser->id}}" id="post-list">

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