@if(session('success'))
{{ session('success') }}
@endif
@if(isset($getposts)) @foreach ($getposts as $index => $post) {{-- --}} @endforeach @endif
S.NO User Name Image Created At Delete
{{ $index +1 ?? '' }} {{ $post->user->name ?? 'N/A' }} {{ strip_tags($post->description) ?? 'N/A' }} @if (!empty($post->image)) Post Image @else

Image not Available

@endif
{{ $post->created_at ?? 'N/A' }} Delete