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