@php
$uname=App\User::where('id',$blogdetail->user_id)->get();
foreach($uname as $name)
{
$blogUser = $name;
$user_name = $name->name;
}
@endphp
@if($blogdetail->poster != NULL)
@else
@endif
- {{$user_name}}
- {{date ('F d,Y',strtotime($blogdetail->created_at))}}
{{$blogdetail->title}}
{!! $blogdetail->detail !!}
@if(Auth::check() && Auth::user() != NULL)
@php
$like=App\Like::orderBy('created_at','desc')->where('added','1')->where('blog_id',$blogdetail->id)->count();
$unlike=App\Like::orderBy('created_at','desc')->where('added','-1')->where('blog_id',$blogdetail->id)->count();
@endphp
{{$like}}
{{$unlike}}
@endif
{{$blogdetail->users->name}}
{{$blogdetail->users->email}}
@if(isset($blogdetail->users->facebook_url) && $blogdetail->users->facebook_url != NULL)
@endif
@if(isset($blogdetail->users->twitter_url) && $blogdetail->users->twitter_url != NULL)
@endif
@if(isset($blogdetail->users->youtube_url) && $blogdetail->users->youtube_url != NULL)
@endif
@if(Auth::check() && Auth::user() != NULL)
@endif
@endsection
@section('custom-script')
@endsection
{{$blogdetail->comments->count()}} {{__('Comment')}}
@foreach ($blogdetail->comments as $comment)
{{ucfirst($comment->name)}}
{{date('F jS, Y - g:i a',strtotime($comment->created_at))}}
{{__('Are You Sure')}}
{{__('Model Message')}}
{{__('Reply For')}} {{$comment->name}}
{{ucfirst($name->name)}}
{{date('F jS, Y - g:i a',strtotime($subcomment->created_at))}}
{{__('Are You Sure')}}
{{__('model message')}}
{{__('postcomment')}}:
{{Form::open( ['route' => ['comment.store', $blogdetail->id], 'method' => 'POST'])}} {{Form::label('comment',__('Comment'))}} {{Form::textarea('comment', null, ['class' => 'form-control', 'rows'=> '5','cols' => '10'])}}
{{Form::submit(__('add comment'), ['class' => 'btn btn-md btn-primary'])}}