@extends('admin.groups.group') @section('content')

Posts

@foreach ($group->posts as $post) @endforeach
Created By Post Post Content Audience Likes Comments View
{{ucfirst($post->post->user->username)}} {{ucfirst($post->post->type). ' '. str_replace('_', ' ', ucfirst($post->post->post_type))}} {{ $post->post->parent_id != 0 ? (strlen($post->post->shared_content) > 30 ? substr($post->post->shared_content, 0, 30) . '...' : $post->post->shared_content ?? 'No Content') : (strlen($post->post->content) > 30 ? substr($post->post->content, 0, 30) . '...' : $post->post->content ?? 'No Content') }} {{ucfirst(str_replace('_', ' ', $post->post->audience))}} {{count($post->post->likes)}} {{count($post->post->comments)}}
@endsection