@extends('client.layouts.layout') @section('content')

Welcome to My Laravel App!

This is a simple Laravel application using Blade templates and Bootstrap for styling.


Explore the features and enjoy building with Laravel.

Learn more

Social Feed

@php($posts = $posts ?? $articles ?? collect()) @forelse($posts as $post)
avatar
{{ $post->user->name ?? 'Anonymous' }}
{{ optional($post->created_at)->diffForHumans() }}

{{ $post->content }}

@if(!empty($post->image)) post image @endif
@csrf
View
{{ $post->comments_count ?? $post->comments->count() ?? 0 }} comments

@foreach(($post->comments ?? collect())->take(3) as $comment)
{{ $comment->user->name ?? 'User' }} ยท {{ optional($comment->created_at)->diffForHumans() }}
{{ $comment->body }}
@endforeach
@csrf
@empty

No posts yet. Be the first to post!

@endforelse
@endsection