@if($timeline->type == "event")
@if(($event->is_eventadmin(Auth::user()->id, $event->id) && $event->timeline_post_privacy == 'only_admins') || ($event->timeline_post_privacy == 'only_guests' && Auth::user()->get_eventuser($event->id)))
@include('socialite::partials.create-post', compact('timeline','user_post'))
@endif
@endif
@if($posts->count() > 0)
@foreach($posts as $post)
@include('socialite::partials.post', compact('post','timeline','next_page_url'))
@endforeach
@else
{{ trans('socialite::common.posts') }}
{{ trans('socialite::messages.no_posts') }}
@endif