@foreach ($posts as $post)
{{ $post->author->name }}

{{ $post->author->name }}

{{ $post->created_at->diffForHumans() }}

@if($post->created_by == auth()->id() || auth()->user()->role == USER_ROLE_ADMIN) @endif

{!! nl2br($post->body) !!}

@if(count($post->media)) @php $photoGalleryClass = ''; if(count($post->media) == 1){ $photoGalleryClass = 'postPhotoItems-one'; }elseif(count($post->media) == 2){ $photoGalleryClass = 'postPhotoItems-two'; }elseif(count($post->media) == 3){ $photoGalleryClass = 'postPhotoItems-three'; }elseif(count($post->media) > 3){ $photoGalleryClass = 'postPhotoItems-multi'; } @endphp @endif
  • @include('alumni.partials.post-like')
@include('alumni.partials.post-comment-box')

{{ __('Replying to') }}

{{ auth()->user()->name }}
@endforeach