@php
$logo_path = \App\Models\Utility::get_file('/');
$setting = \App\Models\Utility::settings();
@endphp
{{ Form::open(['route' => ['projects.tasks.store', $project_id, $stage_id], 'id' => 'create_task']) }}
@if(Utility::plancheck()['enable_chatgpt'] == 'on')
@endif
{{ Form::label('name', __('Task name'), ['class' => 'form-control-label']) }}
{{ Form::text('title', null, ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::label('milestone_id', __('Milestone'), ['class' => 'form-control-label']) }}
{{ Form::label('description', __('Description'), ['class' => 'form-control-label']) }}
{{ __('This textarea will autosize while you type') }}
{{ Form::textarea('description', null, ['class' => 'form-control', 'rows' => '3', 'data-toggle' => 'autosize']) }}
{{ Form::label('estimated_hrs', __('Estimated Hours'), ['class' => 'form-control-label']) }}
{{ __('Total hrs of project ') . $hrs['total'] . __(' & allocated total ') . $hrs['allocated'] . __(' hrs in other tasks') }}
{{ Form::number('estimated_hrs', null, ['class' => 'form-control', 'required' => 'required', 'min' => '0', 'maxlength' => '8']) }}
{{ Form::label('priority', __('Priority'), ['class' => 'form-control-label']) }}
{{ __('Set Priority of your task') }}
{{ Form::label('start_date', __('Start Date'), ['class' => 'form-control-label']) }}
{{ Form::date('start_date', date('Y-m-d'), ['class' => 'form-control']) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-control-label']) }}
{{ Form::date('end_date', date('Y-m-d'), ['class' => 'form-control']) }}
{{ Form::button(__('Save'), ['type' => 'submit', 'class' => 'btn btn-sm btn-primary rounded-pill']) }}
{{ Form::close() }}