{{Theme::extend('community-timeline-before-editor')}}

@if($community->present()->canPost())
    {{Theme::section('post.editor.main', [
        'offPrivacy' => true,
        'type' => 'community',
        'community_id' => $community->id,
        'privacy' => (($community->privacy == 1) ? 1 : 6)
    ])}}
@endif

{{Theme::extend('community-timeline-after-editor')}}
<div data-type="community-{{$community->id}}" data-offset=""  id="post-list">

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




