@if(!empty($task))
{{ Form::model($task, array('route' => array('deals.tasks.update', $deal->id, $task->id), 'method' => 'PUT','class'=>'needs-validation','novalidate')) }}
@else
{{ Form::open(array('route' => ['deals.tasks.store',$deal->id],'class'=>'needs-validation','novalidate')) }}
@endif
@if (module_is_active('AIAssistant'))
@include('aiassistant::ai.generate_ai_btn',['template_module' => 'deal task','module'=>'Lead'])
@endif
{{ Form::label('name', __('Name'),['class'=>'col-form-label']) }}
{{ Form::text('name', null, array('class' => 'form-control','required'=>'required','placeholder' => __('Enter Name'))) }}
{{ Form::label('date', __('Date'),['class'=>'col-form-label']) }}
{{ Form::date('date', null, array('class' => 'form-control','required'=>'required')) }}
{{ Form::label('time', __('Time'),['class'=>'col-form-label']) }}
{{ Form::time('time', null, array('class' => 'form-control timepicker','id' => 'time','required'=>'required')) }}
{{ Form::label('priority', __('Priority'),['class'=>'col-form-label']) }}
{{ Form::label('status', __('Status'),['class'=>'col-form-label']) }}
@if(empty($task))
@stack('calendar')
@endif
{{ Form::close() }}