⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
4a0fa538328cf59152c801e557648341.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Create Employee')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Employee')); ?> <?php $__env->stopSection(); ?> <?php $company_settings = getCompanyAllSetting(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <?php echo e(Form::open(['route' => ['employee.store'], 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'needs-validation', 'novalidate','id'=>'personal-details-form'])); ?> <div class="tab-content" id="pills-tabContent"> <div class="tab-pane fade show active" id="personal-details-tab" role="tabpanel" aria-labelledby="pills-user-tab-1"> <div class="row"> <div class="col-sm-6"> <h5><?php echo e(__('Personal Details')); ?></h5> <hr> <div class="row"> <div class="form-group col-md-6"> <?php echo e(Form::label('name', __('Name'), ['class' => 'form-label'])); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <div class="form-icon-user"> <?php echo e(Form::text('name', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Employee Name')])); ?> </div> </div> <?php if (isset($component)) { $__componentOriginal5d1845474bd0b0647eed674e26ea3910 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5d1845474bd0b0647eed674e26ea3910 = $attributes; } ?> <?php $component = App\View\Components\Mobile::resolve(['divClass' => 'col-md-6','name' => 'phone','label' => ''.e(__('Phone')).'','placeholder' => ''.e(__('Enter Employee Phone')).'','id' => 'phone','required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('mobile'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\App\View\Components\Mobile::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5d1845474bd0b0647eed674e26ea3910)): ?> <?php $attributes = $__attributesOriginal5d1845474bd0b0647eed674e26ea3910; ?> <?php unset($__attributesOriginal5d1845474bd0b0647eed674e26ea3910); ?> <?php endif; ?> <?php if (isset($__componentOriginal5d1845474bd0b0647eed674e26ea3910)): ?> <?php $component = $__componentOriginal5d1845474bd0b0647eed674e26ea3910; ?> <?php unset($__componentOriginal5d1845474bd0b0647eed674e26ea3910); ?> <?php endif; ?> <div class="form-group col-md-6"> <?php echo Form::label('dob', __('Date of Birth'), ['class' => 'form-label']); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo e(Form::date('dob', date('Y-m-d', strtotime('-1 day')), ['class' => 'form-control ', 'required' => 'required', 'autocomplete' => 'off', 'placeholder' => __('Select Date of Birth'), 'max' => date('Y-m-d')])); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('gender', __('Gender'), ['class' => 'form-label']); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <div class="d-flex radio-check"> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="gender" id="g_male" value="Male" checked="checked"> <label class="form-check-label" for="g_male"><?php echo e(__('Male')); ?></label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="gender" id="g_female" value="Female"> <label class="form-check-label" for="g_female"><?php echo e(__('Female')); ?></label> </div> </div> </div> <div class="form-group col-md-6"> <?php echo Form::label('email', __('Email'), ['class' => 'form-label']); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo Form::email('email', old('email'), [ 'class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Employee Email'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('password', __('Password'), ['class' => 'form-label']); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo Form::password('password', [ 'class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Employee New Password'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('passport_country', __('Passport country'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::text('passport_country', null, ['class' => 'form-control', 'placeholder' => __('Enter Passport Country')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('passport', __('Passport'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::text('passport', null, ['class' => 'form-control', 'placeholder' => __('Enter Passport')])); ?> </div> </div> </div> </div> <div class="col-sm-6"> <h5><?php echo e(__('Location Details')); ?></h5> <hr> <div class="row"> <div class="form-group col-md-6"> <?php echo e(Form::label('location_type', __('Location Type'), ['class' => 'form-label'])); ?> <?php echo e(Form::select('location_type', $location_type, null, ['class' => 'form-control select'])); ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('country', __('Country'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::text('country', null, ['class' => 'form-control', 'placeholder' => __('Enter Country')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('state', __('State'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::text('state', null, ['class' => 'form-control', 'placeholder' => __('Enter State')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('city', __('City'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::text('city', null, ['class' => 'form-control', 'placeholder' => __('Enter City')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('zipcode', __('Zip code'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::text('zipcode', null, ['class' => 'form-control', 'placeholder' => __('Enter Zip code')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo Form::label('address', __('Address'), ['class' => 'form-label']); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo Form::textarea('address', old('address'), [ 'class' => 'form-control', 'rows' => 3, 'placeholder' => __('Enter Employee Address'), 'required' => 'required', ]); ?> </div> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <h5><?php echo e(__('Document')); ?></h5> <hr> <div class="card-body employee-detail-create-body p-0"> <?php $__currentLoopData = $documents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $document): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="row"> <div class="form-group col-12 d-flex"> <div class="float-left col-9"> <?php echo e(Form::label('document', $document->name, ['class' => 'float-left pt-1 form-label'])); ?> <?php if($document->is_required == 1): ?> <?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php endif; ?> <input type="hidden" name="emp_doc_id[<?php echo e($document->id); ?>]" value="<?php echo e($document->id); ?>"> <div class="choose-file form-group"> <label for="document[<?php echo e($document->id); ?>]" class="form-label d-block"> <input type="file" class="form-control file <?php $__errorArgs = ['document']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> doc_data" name="document[<?php echo e($document->id); ?>]" id="document[<?php echo e($document->id); ?>]" data-filename="<?php echo e($document->id . '_filename'); ?>" <?php if($document->is_required == 1): ?> data-key="<?php echo e($key); ?>" required <?php endif; ?> onchange="document.getElementById('<?php echo e('blah' . $key); ?>').src = window.URL.createObjectURL(this.files[0])"> <hr> </label> </div> </div> <div class="float-right col-3"> <img id="<?php echo e('blah' . $key); ?>" style="margin-left: 15px;" src="<?php echo e(asset('packages/workdo/Hrm/src/Resources/assets/image/default.png')); ?>" alt="your image" width="120" height="100" class="rounded" /> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div class="col-sm-6"> <h5><?php echo e(__('Bank Account Detail')); ?></h5> <hr> <div class="row"> <div class="form-group col-md-6"> <?php echo Form::label('account_holder_name', __('Account Holder Name'), ['class' => 'form-label']); ?> <?php echo Form::text('account_holder_name', old('account_holder_name'), [ 'class' => 'form-control', 'placeholder' => __('Enter Account Holder Name'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('account_number', __('Account Number'), ['class' => 'form-label']); ?> <?php echo Form::number('account_number', old('account_number'), [ 'class' => 'form-control', 'placeholder' => __('Enter Account Number'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('bank_name', __('Bank Name'), ['class' => 'form-label']); ?> <?php echo Form::text('bank_name', old('bank_name'), [ 'class' => 'form-control', 'placeholder' => __('Enter Bank Name'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('bank_identifier_code', __('Bank Identifier Code'), ['class' => 'form-label']); ?> <?php echo Form::text('bank_identifier_code', old('bank_identifier_code'), [ 'class' => 'form-control', 'placeholder' => __('Enter Bank Identifier Code'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('branch_location', __('Branch Location'), ['class' => 'form-label']); ?> <?php echo Form::text('branch_location', old('branch_location'), [ 'class' => 'form-control', 'placeholder' => __('Enter Branch Location'), ]); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('tax_payer_id', __('Tax Payer Id'), ['class' => 'form-label']); ?> <?php echo Form::text('tax_payer_id', old('tax_payer_id'), [ 'class' => 'form-control', 'placeholder' => __('Enter Tax Payer Id'), ]); ?> </div> </div> </div> </div> <div class="row"> <div class="col"></div> <div class="col-6 text-end"> <button class="btn btn-primary d-inline-flex align-items-center" type="submit" id="next-tab"><?php echo e(__('Next')); ?><i class="ti ti-chevron-right ms-2"></i></button> </div> </div> </div> <div class="tab-pane fade active" id="company-tab" role="tabpanel" aria-labelledby="pills-user-tab-2"> </div> </div> <?php echo e(Form::close()); ?> <div class="source-div d-none"> <div class="row"> <div class="col-sm-6"> <h5><?php echo e(__('Company Detail')); ?></h5> <hr> <div class="row"> <div class="form-group"> <?php echo Form::label('employee_id', __('Employee ID'), ['class' => 'form-label']); ?> <?php echo Form::text('employee_id', $employeesId, ['class' => 'form-control', 'disabled' => 'disabled']); ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('branch_id', !empty($company_settings['hrm_branch_name']) ? $company_settings['hrm_branch_name'] : __('Branch'), ['class' => 'form-label'])); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo e(Form::select('branch_id', $branches, null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Select ' . (!empty($company_settings['hrm_branch_name']) ? $company_settings['hrm_branch_name'] : __('Branch')))])); ?> <?php if(empty($branches->count())): ?> <div class="text-xs"> <?php echo e(__('Please add Branch. ')); ?><a href="<?php echo e(route('branch.index')); ?>"><b><?php echo e(__('Add Branch')); ?></b></a> </div> <?php endif; ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('department_id', !empty($company_settings['hrm_department_name']) ? $company_settings['hrm_department_name'] : __('Department'), ['class' => 'form-label'])); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo e(Form::select('department_id', [], null, ['class' => 'form-control', 'id' => 'department_id', 'required' => 'required', 'placeholder' => __('Select ' . (!empty($company_settings['hrm_department_name']) ? $company_settings['hrm_department_name'] : __('Department')))])); ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('designation_id', !empty($company_settings['hrm_designation_name']) ? $company_settings['hrm_designation_name'] : __('Designation'), ['class' => 'form-label'])); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo e(Form::select('designation_id', [], null, ['class' => 'form-control', 'id' => 'designation_id', 'required' => 'required', 'placeholder' => __('Select ' . (!empty($company_settings['hrm_designation_name']) ? $company_settings['hrm_designation_name'] : __('Designation')))])); ?> </div> <div class="form-group col-md-6"> <?php echo Form::label('company_doj', __('Company Date Of Joining'), ['class' => 'form-label']); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo e(Form::date('company_doj', date('Y-m-d'), ['class' => 'form-control ', 'required' => 'required', 'autocomplete' => 'off', 'placeholder' => __('Select company date of joining')])); ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('role', __('Role'), ['class' => 'form-label'])); ?><?php if (isset($component)) { $__componentOriginaleab1765d328ab3f8835fc5d78676a070 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaleab1765d328ab3f8835fc5d78676a070 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.required','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('required'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $attributes = $__attributesOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__attributesOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php if (isset($__componentOriginaleab1765d328ab3f8835fc5d78676a070)): ?> <?php $component = $__componentOriginaleab1765d328ab3f8835fc5d78676a070; ?> <?php unset($__componentOriginaleab1765d328ab3f8835fc5d78676a070); ?> <?php endif; ?> <?php echo e(Form::select('role', $role, null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Select Role')])); ?> <div class="text-xs mt-1"> <span class="text-danger text-xs"><?php echo e(__('Unable to modify this user`s role. Please ensure that the correct role has been assigned to this user.')); ?></span><br> <?php echo e(__('Create role here. ')); ?> <a href="<?php echo e(route('roles.index')); ?>"><b><?php echo e(__('Create role')); ?></b></a> </div> </div> <?php echo $__env->yieldPushContent('biometric_emp_id'); ?> </div> </div> <div class="col-sm-6"> <h5><?php echo e(__('Hours and Rates Detail')); ?></h5> <hr> <div class="row"> <div class="col-md-6"> <h6><?php echo e(__('Hours')); ?></h6> <hr> </div> <div class="col-md-6"> <h6><?php echo e(__('Rates')); ?></h6> <hr> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('hours_per_day', __('Hours Per day'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('hours_per_day', null, ['class' => 'form-control', 'step' => '0.01', 'placeholder' => __('Enter Hours Per Day')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('annual_salary', __('Annual salary'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('annual_salary', null, ['class' => 'form-control', 'placeholder' => __('Enter Annual Salary')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('days_per_week', __('Days Per week'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('days_per_week', null, ['class' => 'form-control', 'placeholder' => __('Enter Days Per Week')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('fixed_salary', __('Fixed Salary'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('fixed_salary', null, ['class' => 'form-control', 'placeholder' => __('Enter Fixed Salary')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('hours_per_month', __('Hours Per month'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('hours_per_month', null, ['class' => 'form-control', 'step' => '0.01', 'placeholder' => __('Enter Hours Per Month')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('rate_per_day', __('Rate per day'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('rate_per_day', null, ['class' => 'form-control', 'placeholder' => __('Enter Rate Per Day')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('days_per_month', __('Days per month'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('days_per_month', null, ['class' => 'form-control', 'placeholder' => __('Enter Days Per Month')])); ?> </div> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('rate_per_hour', __('Rate per hour'), ['class' => 'form-label'])); ?> <div class="form-icon-user"> <?php echo e(Form::number('rate_per_hour', null, ['class' => 'form-control','step' => '0.01', 'placeholder' => __('Enter Rate Per Hour')])); ?> </div> </div> <div class="form-group col-md-12"> <div class="form-check"> <input type="checkbox" class="form-check-input" id="payment_requires_work_advice" name="payment_requires_work_advice"> <label class="form-check-label" for="payment_requires_work_advice"><?php echo e(__('This employee must not be paid unless hours or days worked are advised')); ?></label> </div> </div> </div> </div> </div> <div class="mt-3 row"> <div class="col-6"> <button class="btn btn-outline-secondary d-inline-flex align-items-center" id="previous-tab" type="button"><i class="ti ti-chevron-left me-2"></i><?php echo e(__('Previous')); ?></button> </div> <div class="col-6 text-end" id="savebutton"> <a class="btn btn-secondary btn-submit me-1" href="<?php echo e(route('employee.index')); ?>"><?php echo e(__('Cancel')); ?></a> <button class="btn btn-primary btn-submit" type="submit" id="submit"><?php echo e(__('Create')); ?></button> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('js/jquery-ui.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/js/plugins/dropzone-amd-module.min.js')); ?>"></script> <script type="text/javascript"> $(document).on('change', '#branch_id', function() { var branch_id = $(this).val(); getDepartment(branch_id); }); function getDepartment(branch_id) { var data = { "branch_id": branch_id, "_token": "<?php echo e(csrf_token()); ?>", } $.ajax({ url: '<?php echo e(route('hrm.employee.getdepartment')); ?>', method: 'POST', data: data, success: function(data) { $('#department_id').empty(); $('#department_id').append( '<option value="" disabled><?php echo e(__('Select Department')); ?></option>'); $.each(data, function(key, value) { $('#department_id').append('<option value="' + key + '">' + value + '</option>'); }); $('#department_id').val(''); } }); } $(document).on('change', 'select[name=department_id]', function() { var department_id = $(this).val(); getDesignation(department_id); }); function getDesignation(did) { $.ajax({ url: '<?php echo e(route('hrm.employee.getdesignation')); ?>', type: 'POST', data: { "department_id": did, "_token": "<?php echo e(csrf_token()); ?>", }, success: function(data) { $('#designation_id').empty(); $('#designation_id').append( '<option value=""><?php echo e(__('Select Designation')); ?></option>'); $.each(data, function(key, value) { $('#designation_id').append('<option value="' + key + '">' + value + '</option>'); }); } }); } </script> <script> // personal-details $(document).on('click', '#next-tab', function(event) { var forms = document.querySelector('#personal-details-form'); if (forms) { if (forms.checkValidity() == true) { var content = $('.source-div').html(); $('#company-tab').html(content); $('.source-div').empty(); $('#personal-details-tab').removeClass('show active'); $('#company-tab').addClass('show active'); } } }); $(document).on('click', '#previous-tab', function() { var content = $('#company-tab').html(); $('.source-div').html(content); $('#company-tab').empty(); // changetab('#personal-details-tab'); $('#company-tab').removeClass('show active'); $('#personal-details-tab').addClass('show active'); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Hrm/src/Providers/../Resources/views/employee/create.blade.php ENDPATH**/ ?>