@extends('admin.layout') @section('content')

{{ trans('Update Task') }}

@php $getUserRoleData = userRoleData(); $task = explode(",",$getUserRoleData->task); @endphp
@if(in_array("Edit",$task )) {!! Form::open(array('url' =>'admin/update-task-data', 'method'=>'post', 'class' => 'form-horizontal', 'id'=>'form1', 'enctype'=>'multipart/form-data')) !!}
@if( count((array) $errors) > 0) @foreach($errors->all() as $error) @endforeach @endif @if(!empty(session('message'))) @endif @if(!empty(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',)) !!}
{!! Form::close() !!} @if(in_array("Edit", $task) && $result['task']->comments->isNotEmpty() )
Comments History:
@foreach($result['task']->comments as $v)
{{ $v->createdByUser->first_name . ' ' . $v->createdByUser->last_name . ' | ' . $v->created_at }}
{!! $v->comment !!}
@endforeach
@endif @else

Please contact with SuperAdmin

@endif
@endsection