{!! Form::open(['url' => action([\Modules\ManagementTools\Http\Controllers\EmployeeTaskController::class, 'store']), 'method' => 'post', 'id' => 'mt_task_form']) !!}

@lang('managementtools::lang.add') @lang('managementtools::lang.employee_tasks')

{!! Form::label('user_id', __('managementtools::lang.employee') . ':*') !!} {!! Form::select('user_id', $users, null, ['class' => 'form-control select2', 'required', 'style' => 'width:100%']) !!}
@if(!empty($has_pp_projects) && !empty($projects_grouped))
{!! Form::label('project_id', __('managementtools::lang.select_project')) !!}
@endif
{!! Form::label('title', __('managementtools::lang.title') . ':*') !!} {!! Form::text('title', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('description', __('managementtools::lang.description')) !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::label('due_date', __('managementtools::lang.due_date')) !!} {!! Form::text('due_date', null, ['class' => 'form-control datepicker mt-datepicker', 'readonly', 'autocomplete' => 'off']) !!}
{!! Form::label('task_status', __('managementtools::lang.status')) !!} {!! Form::select('task_status', $statuses, 0, ['class' => 'form-control']) !!}
{!! Form::close() !!}