dbfdg
{{Form::model($leave,array('route' => array('leave.update', $leave->id), 'method' => 'PUT')) }}
{{-- start for ai module--}}
@php
$plan= \App\Models\Utility::getChatGPTSettings();
@endphp
@if($plan->chatgpt == 1)
@endif
{{-- end for ai module--}}
@if(\Auth::user()->type =='company' || \Auth::user()->type =='HR')
{{Form::label('employee_id',__('Employee') ,['class'=>'form-label'])}}
{{Form::select('employee_id',$employees,null,array('class'=>'form-control select','placeholder'=>__('Select Employee')))}}
@endif
{{Form::label('leave_type_id',__('Leave Type'),['class'=>'form-label'])}}
{{Form::select('leave_type_id',$leavetypes,null,array('class'=>'form-control select','placeholder'=>__('Select Leave Type'),'required' =>'required'))}}
{{Form::label('start_date',__('Start Date'),['class'=>'form-label'])}}
{{Form::date('start_date',null,array('class'=>'form-control','required' =>'required'))}}
{{Form::label('end_date',__('End Date'),['class'=>'form-label'])}}
{{Form::date('end_date',null,array('class'=>'form-control','required' =>'required'))}}
{{Form::label('leave_reason',__('Leave Reason'),['class'=>'form-label'])}}
{{Form::textarea('leave_reason',null,array('class'=>'form-control','placeholder'=>__('Leave Reason'),'required' =>'required'))}}
{{Form::label('remark',__('Remark'),['class'=>'form-label'])}}
{{Form::textarea('remark',null,array('class'=>'form-control grammer_textarea','placeholder'=>__('Leave Remark'),'required' =>'required'))}}
@role('Company')
{{Form::label('status',__('Status'))}}
@endrole
{{Form::close()}}