@extends('layouts.landing') @section('title', 'Feeds') @section('content')
{{ $feed->created_at->diffForHumans() }}
{!! preg_replace( '~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~', "\\0", $feed->content, ) !!}
--}}@php $like_count = App\Models\Like::where('feed_id', $feed->id) ->where('like', 1) ->count(); @endphp @if ($like_count > 0 && $like_count < 2) {{ $like_count }} like @elseif($like_count > 1) {{ $like_count }} likes @else {{ $like_count }} like @endif
@php $comment_count = App\Models\Comment::where('feed_id', $feed->id)->count(); @endphp
Share
{{ $feed->created_at->diffForHumans() }}
{!! preg_replace( '~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~', "\\0", $feed->content, ) !!}
--}}@php $like_count = App\Models\Like::where('feed_id', $feed->id) ->where('like', 1) ->count(); @endphp @if ($like_count > 0 && $like_count < 2) {{ $like_count }} like @elseif($like_count > 1) {{ $like_count }} likes @else {{ $like_count }} like @endif
@php $comment_count = App\Models\Comment::where('feed_id', $feed->id)->count(); @endphp
@if ($feed->edited)edited
@endifShare