@if (Auth::user()->type == 'company' || !in_array(\Auth::user()->type, \Auth::user()->not_emp_type))
{{ Form::model($event, ['route' => ['event.update', $event->id], 'method' => 'PUT', 'class' => 'needs-validation', 'novalidate']) }}
@if (module_is_active('AIAssistant'))
@include('aiassistant::ai.generate_ai_btn',['template_module' => 'event','module'=>'Hrm'])
@endif
{{ Form::label('title', __('Event Title'), ['class' => 'form-label']) }}
{{ Form::text('title', null, ['class' => 'form-control', 'placeholder' => __('Enter Event Title'),'required' => 'required']) }}
{{ Form::label('start_date', __('Event start Date'), ['class' => 'form-label']) }}
{{ Form::date('start_date', null, ['class' => 'form-control ', 'autocomplete' => 'off','required' => 'required', 'min' => date('Y-m-d')]) }}
{{ Form::label('end_date', __('Event End Date'), ['class' => 'form-label']) }}
{{ Form::date('end_date', null, ['class' => 'form-control ', 'autocomplete' => 'off','required' => 'required', 'min' => date('Y-m-d')]) }}
{{ Form::label('description', __('Event Description'), ['class' => 'form-label']) }}
{{ Form::textarea('description', null, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('Enter Event Description')]) }}
{{ Form::close() }}
@endif
@if (Auth::user()->type == 'hr')
{{ Form::model($event, ['route' => ['event.update', $event->id], 'method' => 'PUT', 'class' => 'needs-validation', 'novalidate']) }}
{{ Form::close() }}
@endif