@if (!isClientRole($user))
@include('user.basic_user')
@else
@include('user.basic_client')
@endif
@if(Laratrust::isAbleTo('edit-user'))
{!! Form::model($user,['files' => true, 'method' => 'POST','route' => ['user.avatar',$user->id] ,'class' => 'user-avatar-form','id' => 'user-signature-form']) !!}
{{trans('messages.photo')}}
@if($user->Profile->avatar && File::exists(config('constant.upload_path.avatar').$user->Profile->avatar))
@endif
@if(Laratrust::isAbleTo('signature-profile'))
{{trans('messages.signature')}}
@if($user->Profile->signature && File::exists(storage_path(config('constant.upload_path.signature').$user->Profile->signature)))
@endif
@endif
{!! Form::submit(trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!}
{!! Form::close() !!}
@endif
@if(!$user->hasRole(DEFAULT_ROLE))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.employment')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-employment.store',$user->id],'class' => 'user-employment-form','id' => 'user-employment-form','data-table-refresh' => 'user-employment-table','data-refresh' => 'load-user-detail']) !!}
@include('user_employment._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.employment') !!}
{!! trans('messages.notify_cancel_date') !!} |
{!! trans('messages.date_of').' '.trans('messages.joining') !!} |
{!! trans('messages.date_of').' '.trans('messages.leaving') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('contact-profile'))
@endif
@if(Laratrust::isAbleTo('bank-profile'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.bank').' '.trans('messages.account')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-bank-account.store',$user->id],'class' => 'user-bank-account-form','id' => 'user-bank-account-form','data-table-refresh' => 'user-bank-account-table','data-refresh' => 'load-user-detail']) !!}
@include('user_bank_account._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.account') !!}
{!! trans('messages.account').' '.trans('messages.name') !!} |
{!! trans('messages.account').' '.trans('messages.number') !!} |
{!! trans('messages.bank').' '.trans('messages.name') !!} |
{!! trans('messages.bank').' '.trans('messages.branch') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('document-profile'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.document')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-document.store',$user->id],'class' => 'user-document-form','id' => 'user-document-form','data-table-refresh' => 'user-document-table','data-file-upload' => '.file-uploader','data-refresh' => 'load-user-detail']) !!}
@include('user_document._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.document') !!}
{!! trans('messages.type') !!} |
{!! trans('messages.title') !!} |
{!! trans('messages.date_of').' '.trans('messages.expiry') !!} |
{!! trans('messages.tracking') !!} |
{!! trans('messages.option') !!} |
@endif
@if(!$user->hasRole(DEFAULT_ROLE))
@if(Laratrust::isAbleTo('edit-user'))
{{ (env('COMPANY_ID') == 34) ? 'ESS Grade' : trans('messages.designation') }}
{!! Form::model($user,['method' => 'POST','route' => ['user-designation.store',$user->id],'class' => 'user-designation-form','id' => 'user-designation-form','data-table-refresh' => 'user-designation-table','data-refresh' => 'load-user-detail']) !!}
@include('user_designation._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.designation') !!}
{!! trans('messages.designation') !!} |
{!! trans('messages.from').' '.trans('messages.date') !!} |
{!! trans('messages.to').' '.trans('messages.date') !!} |
{!! trans('messages.description') !!} |
{!! trans('messages.option') !!} |
@endif
@if(env('COMPANY_ID') == 89 && Laratrust::isAbleTo('location-profile'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.location')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-location.store',$user->id],'class' => 'user-location-form','id' => 'user-location-form','data-table-refresh' => 'user-location-table','data-refresh' => 'load-user-detail']) !!}
@include('user_location._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.location') !!}
{!! trans('messages.location') !!} |
{!! trans('messages.from').' '.trans('messages.date') !!} |
{!! trans('messages.to').' '.trans('messages.date') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('contract-profile'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.contract')}}
@if ((Laratrust::isAbleTo('manage-job') && !Laratrust::isAbleTo('create-ket')) || Laratrust::hasRole(DEFAULT_ROLE))
@if(env('COMPANY_ID') == 34)
{!! Form::open(['url'=>"/job-application/showContract?src=user&doc_type=job_scope&id=".$user->id, 'id'=>'job-scope-form', 'data-submit'=>'noAjax']) !!}
{!! Form::button('
'.trans('messages.officer').' '.trans('messages.job_scope'), ['class' => 'btn btn-xs btn-primary', 'type' => 'submit', 'formtarget' => '_blank']) !!}
{!! Form::close() !!}
@endif
{!! trans('messages.create').' '.trans('messages.employment').' '.trans('messages.contract') !!}
@endif
{!! Form::model($user,['method' => 'POST','route' => ['user-contract.store',$user->id],'class' => 'user-contract-form','id' => 'user-contract-form','data-table-refresh' => 'user-contract-table','data-file-upload' => '.file-uploader','data-refresh' => 'load-user-detail']) !!}
@include('user_contract._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.contract') !!}
{!! trans('messages.contract').' '.trans('messages.type') !!} |
{!! trans('messages.title') !!} |
{!! trans('messages.from').' '.trans('messages.date') !!} |
{!! trans('messages.to').' '.trans('messages.date') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('shift-profile'))
{{trans('messages.shift')}}
{{-- @if(Laratrust::isAbleTo('edit-user'))
@endif --}}
@if(!Laratrust::isAbleTo('manage-officer-deployment') && Laratrust::isAbleTo('edit-user'))
{!! Form::model($user,['method' => 'POST','route' => ['user-shift.store',$user->id] ,'class' => 'user-shift-form','id' => 'user-shift-form','data-table-refresh' => 'user-shift-table', 'data-refresh' => 'load-user-detail']) !!}
@include('user_shift._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.shift') !!}
{!! trans('messages.location') !!} |
{!! trans('messages.shift') !!} |
{!! trans('messages.from').' '.trans('messages.date') !!} |
{!! trans('messages.to').' '.trans('messages.date') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('request-leave'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.leave')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-leave.store',$user->id],'class' => 'user-leave-form','id' => 'user-leave-form','data-table-refresh' => 'user-leave-table','data-refresh' => 'load-user-detail']) !!}
@include('user_leave._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.leave') !!}
{!! trans('messages.annual').' '.trans('messages.leave').' '.trans('messages.eligible') !!}: {!! (!empty($user_eligible_leaves) ? ''.$user_eligible_leaves['annual_leave'].'' : 'Nil') !!}
{!! trans('messages.from').' '.trans('messages.date') !!} |
{!! trans('messages.to').' '.trans('messages.date') !!} |
@foreach($leave_types as $leave_type)
{!! $leave_type->name !!} |
@endforeach
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('list-payroll') || Laratrust::isAbleTo('payroll-profile'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.salary').' '.trans('messages.detail')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-salary.store',$user->id],'class' => 'user-salary-form','id' => 'user-salary-form','data-table-refresh' => 'user-salary-table','data-refresh' => 'load-user-detail']) !!}
@include('user_salary._form')
{!! Form::close() !!}
{{trans('messages.shg_fund')}}
{!! Form::model($user,['method' => 'POST','route' => ['user.shg-update',$user->id],'class' => 'user-shg-form','id' => 'user-shg-form','data-no-form-clear' => 1,'data-refresh' => 'load-user-detail']) !!}
{!! Form::label('shg_fund',trans('messages.main').' SHG',[])!!}
{!! Form::select('shg_fund',App\User::$shg_fund_type,($user->Profile->has_mbmf) ? 'MBMF' : $user->Profile->shg_fund,['class'=>'form-control input-xlarge show-tick', 'title'=>trans('messages.select_one'),'onchange'=>'showSecondSHG(this.value)'])!!}
@if(isset($user->Profile->shg_fund) && $user->Profile->has_mbmf)
@else
@endif
{!! Form::label('shg_fund',trans('messages.secondary').' SHG',[])!!}
{!! tooltip('For employee with a second SHG (e.g. Indian Muslim, Chinese Muslim, etc...)') !!}
{!! Form::select('second_shg_fund',['CDAC'=>'CDAC', 'SINDA'=>'SINDA', 'ECF'=>'ECF', 'NONE'=>'None'],($user->Profile->has_mbmf) ? $user->Profile->shg_fund : '',['class'=>'form-control input-xlarge show-tick', 'title'=>trans('messages.select_one')])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right', 'id'=> 'ob-save-btn-shg']) !!}
{!! Form::close() !!}
@if(env('COMPANY_ID') == 36 && isset($user->Profile->nationality) && $user->Profile->nationality == 'Foreigner')
Foreigner Levy
{!! Form::model($user,['method' => 'POST','route' => ['user.levy-update',$user->id],'class' => 'user-levy-form','id' => 'user-levy-form','data-no-form-clear' => 1,'data-refresh' => 'load-user-detail']) !!}
{!! Form::label('foreigner_levy','Levy Amount',[])!!}
{!! Form::input('number','foreigner_levy',$user->Profile->foreigner_levy ?? '',['class'=>'form-control'])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right', 'id'=> 'ob-save-btn-shg']) !!}
{!! Form::close() !!}
@endif
@endif
{!! trans('messages.list_all').' '.trans('messages.salary') !!}
{!! trans('messages.from').' '.trans('messages.date') !!} |
{!! trans('messages.to').' '.trans('messages.date') !!} |
{!! trans('messages.type') !!} |
{!! trans('messages.payment').' '.trans('messages.method') !!} |
{!! trans('messages.description') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('education-profile'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.qualification')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-qualification.store',$user->id],'class' => 'user-qualification-form','id' => 'user-qualification-form','data-table-refresh' => 'user-qualification-table','data-file-upload' => '.file-uploader','data-refresh' => 'load-user-detail']) !!}
@include('user_qualification._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.qualification') !!}
{!! trans('messages.institute').' '.trans('messages.name') !!} |
{!! trans('messages.education').' '.trans('messages.level') !!} |
{!! trans('messages.duration') !!} |
{!! trans('messages.option') !!} |
@if(Laratrust::isAbleTo('edit-user'))
{{ trans('messages.work').' '.trans('messages.experience') }}
{!! Form::model($user,['method' => 'POST','route' => ['user-experience.store',$user->id],'class' => 'user-experience-form','id' => 'user-experience-form','data-table-refresh' => 'user-experience-table','data-file-upload' => '.file-uploader','data-refresh' => 'load-user-detail']) !!}
@include('user_experience._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.experience') !!}
{!! trans('messages.company').' '.trans('messages.name') !!} |
{!! trans('messages.job').' '.trans('messages.title') !!} |
{!! trans('messages.assigned').' '.trans('messages.site') !!} |
{!! trans('messages.duration') !!} |
{!! trans('messages.option') !!} |
@endif
@if(Laratrust::isAbleTo('list-suggested-training'))
@if(Laratrust::isAbleTo('edit-user'))
{{trans('messages.training').' & '.trans('messages.certificate')}}
{!! Form::model($user,['method' => 'POST','route' => ['user-certificate.store',$user->id],'class' => 'user-certificate-form','id' => 'user-certificate-form','data-table-refresh' => 'user-certificate-table','data-file-upload' => '.file-uploader','data-refresh' => 'load-user-detail']) !!}
@include('user_certificate._form')
{!! Form::close() !!}
@endif
{!! trans('messages.list_all').' '.trans('messages.training') !!}
@endif
@if($user->id != Auth::user()->id && Laratrust::isAbleTo('reset-user-password'))
{{trans('messages.reset').' '.trans('messages.password')}}
{!! Form::model($user,['method' => 'POST','route' => ['user.force-change-password',$user->id] ,'class' => 'user-force-change-password-form','id' => 'user-force-change-password-form']) !!}
{!! Form::label('new_password',trans('messages.new').' '.trans('messages.password'),[])!!}
{!! Form::input('password','new_password','',['class'=>'form-control '.(config('config.enable_password_strength_meter') ? 'password-strength' : ''),'placeholder'=>trans('messages.new').' '.trans('messages.password')])!!}
{!! Form::label('new_password_confirmation',trans('messages.confirm').' '.trans('messages.password'),[])!!}
{!! Form::input('password','new_password_confirmation','',['class'=>'form-control','placeholder'=>trans('messages.confirm').' '.trans('messages.password')])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.update'),['class' => 'btn btn-primary pull-right']) !!}
{!! Form::close() !!}
@endif
@if(Laratrust::isAbleTo('list-inventory'))
{!! trans('messages.stock').' '.trans('messages.received') !!}
@if(Laratrust::isAbleTo('edit-inventory'))
@endif
@endif
@if (Laratrust::isAbleTo('list-award'))
{!! trans('messages.list_all').' '.trans('messages.award') !!}
{!! trans('messages.award').' '.trans('messages.category') !!} |
{!! trans('messages.date_of').' '.trans('messages.award') !!} |
{!! trans('messages.description') !!} |
{!! trans('messages.attachments') !!} |
@endif
{{-- @if(config('config.enable_email_template') && Laratrust::isAbleTo('email-user'))
{{ trans('messages.email').' '.trans('messages.user') }}
{!! Form::model($user,['method' => 'POST','route' => ['user.email',$user->id] ,'class' => 'user-email-form','id' => 'user-email-form','data-user-id' => $user->id,'data-url' => '/template/content']) !!}
{!! Form::select('template_id', $templates,'',['class'=>'form-control','id'=>'template_id','title' => trans('messages.select_one')])!!}
{!! Form::input('text','subject','',['class'=>'form-control','placeholder'=>trans('messages.subject'),'id' => 'mail_subject']) !!}
{!! Form::textarea('body','',['size' => '30x3', 'class' => 'form-control summernote', 'id' => 'mail_body', 'placeholder' => trans('messages.body')])!!}
{!! Form::submit(trans('messages.send'),['class' => 'btn btn-primary pull-right']) !!}
{!! Form::close() !!}
@endif --}}