@extends('backend.layouts.app') @section('title', 'Dashboard') @push('styles') @endpush @section('content')

DASHBOARD

playlist_add_check
TOTAL PROPERTY
help
TOTAL POST
forum
TOTAL COMMENT
person_add
TOTAL USER

RECENT PROPERTIES

@foreach($properties as $key => $property) @endforeach
SL. Title Price City star Manager
{{ ++$key }}. {{ str_limit($property->title, 10) }} ${{ $property->price }} {{ $property->city }} @if($property->featured == 1) F @endif {{ strtok($property->user->name, " ")}}

RECENT POSTS

@foreach($posts as $key => $post) @endforeach
SL. Title comment Author
{{ ++$key }}. {{ str_limit($post->title, 30) }} {{ $post->comments_count }} {{ strtok($post->user->name, " ")}}

USER LIST

@foreach($users as $key => $user) @endforeach
SL. Name Email Role
{{ ++$key }}. {{ $user->name }} {{ $user->email }} {{ $user->role->name }}

RECENT COMMENTS

@foreach($comments as $key => $comment) @endforeach
SL. Comment check Author Time
{{ ++$key }}. {{ str_limit($comment->body, 10) }} @if($comment->approved == 1) A @else N @endif {{ strtok($comment->users->name, " ")}} {{ $comment->created_at->diffForHumans() }}
@endsection @push('scripts') @endpush