@section('title')
@csrf @method('POST')
@if (count($postreports))
@csrf @method('POST')
@endif
@endsection
{{ $post->created_at ? $post->created_at->format('Y, M d') : '' }}
{{ $post->user->name }}
{{ $post->total_comment }} Comments
{{ $post->title }}
@foreach ($gallary as $index => $media)
@if ($media->media_type == 1)
@elseif($media->media_type == 2)
@endif
@endforeach

Statistics

Total views {{ $post->total_view }}
Total Like {{ $post->total_like }}
Popular Point {{ $post->popular_point }}
Total comment {{ $post->total_comment }}
Total share {{ $post->total_share }}
@if (count($comments)) {{--
--}}

Comments

{{--
--}} @foreach ($comments as $comment) @endforeach
User Comment Created At
{{ @$comment->user->name }} {{ @$comment->comment }} {{ @$comment->created_at->format('Y-m-d H:i:s') }}
@endif
@if (count($postreports)) {{--
--}}

Post Reported By

{{--
--}} @foreach ($postreports as $report) @endforeach
Reported By Reported At Status Resolved At
{{ @$report->user->name }} {{ @$report->creaed_at ? @$report->creaed_at->format('Y-m-d H:i:s') : '' }} {{ @$report->status == 1 ? 'pending' : 'accepted' }} {{ @$report->resolved_at ? @$report->resolved_at->format('Y-m-d H:i:s') : '' }}
@endif