Notice: Undefined variable: subject in C:\xampp\htdocs\crm\resources\views\partials\comments.blade.php on line 1

{{$subject->title}}

{{$subject->description }}

{{ __('Created at') }}: {{ date('d F, Y, H:i:s', strtotime($subject->created_at))}} @if($subject->updated_at != $subject->created_at)
{{ __('Modified') }}: {{date('d F, Y, H:i:s', strtotime($subject->updated_at))}} @endif

@foreach($subject->comments as $comment)

#{{$i++}}

{{ $comment->description }}

{{ __('Comment by') }}: {{$comment->user->name}}

{{ __('Created at') }}: {{ date('d F, Y, H:i:s', strtotime($comment->created_at))}} @if($comment->updated_at != $comment->created_at)
{{ __('Modified') }} : {{date('d F, Y, H:i:s', strtotime($comment->updated_at))}} @endif

@endforeach
@if($instance == 'task') {!! Form::open(array('url' => array('/comments/task',$subject->id, ))) !!}
{!! Form::textarea('description', null, ['class' => 'form-control', 'id' => 'comment-field']) !!} {!! Form::submit( __('Add Comment') , ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @else {!! Form::open(array('url' => array('/comments/lead',$lead->id, ))) !!}
{!! Form::textarea('description', null, ['class' => 'form-control', 'id' => 'comment-field']) !!} {!! Form::submit( __('Add Comment') , ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @endif @push('scripts') @endpush