@if(session('success'))
{{ session('success') }}
@endif
{{-- --}} @if(isset($getposts)) @foreach ($getposts as $post) {{-- --}} @php $imagePath = $post->image ?? 'images/default.png'; @endphp @endforeach @endif
S.NO User NameDescriptionImage Created At Updated At Edit Delete
{{ $post->id ?? 'N/A' }} {{ $post->user->name ?? 'N/A' }} {{ strip_tags($post->description) ?? 'N/A' }} @if (!empty($post->image)) Post Image @endif {{ $post->created_at ?? 'N/A' }} {{ $post->updated_at ?? 'N/A' }} Edit Delete