@if(in_array("Edit",$task ))
{!! Form::open(array('url' =>'admin/update-task-data', 'method'=>'post', 'class' => 'form-horizontal', 'id'=>'form1', 'enctype'=>'multipart/form-data')) !!}
{!! Form::close() !!}
@if(in_array("Edit", $task) && $result['task']->comments->isNotEmpty() )
@endforeach
@endif
@else
@if( count((array) $errors) > 0)
@foreach($errors->all() as $error)
{{ trans('labels.Error') }}:
{{ $error }}
@endforeach
@endif
@if(!empty(session('message')))
{{ session('message') }}
@endif
@if(!empty(session('error')))
{{ session('error') }}
@endif
{!! Form::text('title', $result['task']->title, array('class'=>'form-control', 'id'=>'title', 'required'=>'required')) !!}
{!! Form::textarea('comment', $result['task']->comment, array('class'=>'form-control', 'id'=>'comment', 'rows'=>'3',)) !!}
Comments History:
@foreach($result['task']->comments as $v)
{{ $v->createdByUser->first_name . ' ' . $v->createdByUser->last_name . ' | ' . $v->created_at }}
{!! $v->comment !!}
Please contact with SuperAdmin
@endif