@extends('admin.layouts.index') @section('content')

{{ $posts->count() }}

Total Posts

{{ $comments->count() }}

Total Comments

{{ $posts->sum('view_count') }}

Total Views

@php $likes = DB::table('post_user'); @endphp

{{ $likes->count() }}

Total Liked

Recent Comments
@foreach($comments as $key => $comment) @endforeach
# Message User Name Post Title Date Status Action
{{ $key+1 }} {{ Str::limit($comment->comment, 20 )}} {{ $comment->user->name }} {{ Str::limit($comment->post->title, 20 )}} {{$comment->created_at->diffForHumans() }} @if($comment->status == 1) Published @else Draft @endif @if($comment->status == 1) @else @endif
@foreach($comments as $comment) {{-- Delete comment Modal --}} @endforeach @endsection