@csrf
{{ auth()->user()->firstname ?? '' }}

Annonymous Post

@foreach ($knownPosts as $item)

{{ $item->user->firstname . ' ' . $item->user->lastname ?? 'N/A' }}
{{ \Carbon\Carbon::parse($item->created_at)->format('H:i A') }}

@if ($item->user && $item->user->serviceTypes->isNotEmpty()) @php $serviceType = $item->user->serviceTypes->first(); @endphp

{{ $serviceType->service }}

@endif

{{ $item->post }}

Like {{ $item->likes ? $item->likes->count() : 0 }} Comment {{ $item->comments->count() }} Share {{ $item->views ?? '0' }} views
  • @csrf
    @endforeach {{-- Pagination links --}} @if (count($knownPosts) > 2)
    {{ $knownPosts->links('vendor.pagination.custom') }}
    @endif
    {{-- Script to be able to submit the comment form with enter button --}} {{-- Script to handle like toggle functionality --}} {{-- For Replying on a comment --}} {{-- For view more comment --}}