@extends('header') @section('title', $singlePostData->title) @section('otherConetent') {{-- {{ var_export(session()->all(), true) }} --}} {{-- Highlight code --}}

{{ $singlePostData->title }}

{{ $singlePostData->title }}

{!! $singlePostData->content !!}

Recent Posts

More

Suggested Posts

Other Categories

More
@foreach ($singlePostData->comments as $comments)
User Avatar

{{ $comments->name }}

{{ Carbon\Carbon::parse($comments->created_at)->diffForHumans() }}
@if (!is_null($comments->status))

Comment {{ $comments->status }}

@else

{{ $comments->comment }}

@endif
@php $reaction = session()->get('commentReaction', []); $action = 'like'; if (in_array($comments->id, $reaction)) { $action = 'dislike'; } else { $action = 'like'; } @endphp
@if (Auth::user()) @endif
@if ($comments->replies) @include('components.commentReply', ['data' => $comments->replies, 'replyLabel' => 1]) @endif @endforeach
@php $inputStyle = 'block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer'; $labelClass = 'peer-focus:font-medium absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 capitalize'; @endphp

Post Comment

@php function checkName(){ return Auth::check() ? Auth::user()->name : '' ; } @endphp
{{-- Highlight Code show --}} @endsection