File manager - Edit - /var/www/payraty/hris/storage/framework/views/07e7f835162b6023672417fd4703f09b.php
Back
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Create Employee')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Home')); ?></a></li> <li class="breadcrumb-item"><a href="<?php echo e(url('employee')); ?>"><?php echo e(__('Employee')); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('Create Employee')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startPush('css'); ?> <style> .cursor-pointer { cursor: pointer; } </style> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class=""> <div class=""> <div class="row"> </div> <?php echo e(Form::open(['route' => ['employee.store'], 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'needs-validation', 'novalidate'])); ?> <div class="row"> <div class="col-md-6"> <div class="card em-card"> <div class="card-header"> <h5><?php echo e(__('Personal Detail')); ?></h5> </div> <div class="card-body"> <div class="row"> <div class="form-group col-md-6"> <?php echo 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; ?> <?php echo Form::text('name', old('name'), [ 'class' => 'form-control', 'required' => 'required', 'placeholder' => 'Enter employee name', ]); ?> </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="col-md-6"> <div class="form-group"> <?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> <div class="col-md-6"> <div class="form-group"> <?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="custom-control custom-radio custom-control-inline"> <input type="radio" id="g_male" value="Male" name="gender" class="form-check-input" checked="checked"> <label class="form-check-label " for="g_male"><?php echo e(__('Male')); ?></label> </div> <div class="custom-control custom-radio ms-1 custom-control-inline"> <input type="radio" id="g_female" value="Female" name="gender" class="form-check-input"> <label class="form-check-label " for="g_female"><?php echo e(__('Female')); ?></label> </div> </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 password'), ]); ?> </div> </div> <div class="form-group"> <?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, 'required' => 'required', 'placeholder' => __('Enter employee address'), ]); ?> </div> </div> </div> </div> <div class="col-md-6"> <div class="card em-card"> <div class="card-header"> <h5><?php echo e(__('Company Detail')); ?></h5> </div> <div class="card-body employee-detail-create-body"> <div class="row"> <?php echo csrf_field(); ?> <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', __('Select Branch'), ['class' => 'form-label'])); ?> <?php echo e(Form::select('branch_id', $branches, null, ['class' => 'form-control', 'placeholder' => __('Select 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', __('Select Department'), ['class' => 'form-label'])); ?> <?php echo e(Form::select('department_id', [], null, ['class' => 'form-control', 'id' => 'department_id', 'placeholder' => __('Select Department')])); ?> </div> <div class="form-group col-md-6"> <?php echo e(Form::label('designation_id', __('Select Designation'), ['class' => 'form-label'])); ?> <?php echo e(Form::select('designation_id', [], null, ['class' => 'form-control', 'id' => 'designation_id', 'placeholder' => __('Select Designation')])); ?> </div> <div class="form-group"> <?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', null, ['class' => 'form-control current_date', 'required' => 'required', 'autocomplete' => 'off', 'placeholder' => 'Select company date of joining'])); ?> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-6 "> <div class="card em-card"> <div class="card-header"> <h5><?php echo e(__('Document')); ?></h6> </div> <div class="card-body employee-detail-create-body"> <?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-4"> <label for="document" class="float-left pt-1 form-label"><?php echo e($document->name); ?> <?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; ?> </label> </div> <div class="float-right col-8"> <input type="hidden" name="emp_doc_id[<?php echo e($document->id); ?>]" id="" value="<?php echo e($document->id); ?>"> <div class="choose-files"> <label for="document[<?php echo e($document->id); ?>]"> <div class=" bg-primary document cursor-pointer"> <i class="ti ti-upload "></i><?php echo e(__('Choose file here')); ?> </div> <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); ?>" <?php if($document->is_required == 1): ?> required <?php endif; ?> name="document[<?php echo e($document->id); ?>]" id="document[<?php echo e($document->id); ?>]" data-filename="<?php echo e($document->id . '_filename'); ?>" onchange="document.getElementById('<?php echo e('blah' . $key); ?>').src = window.URL.createObjectURL(this.files[0])"> </label> <img id="<?php echo e('blah' . $key); ?>" src="" width="50%" /> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <div class="col-md-6 "> <div class="card em-card"> <div class="card-header"> <h5><?php echo e(__('Bank Account Detail')); ?></h5> </div> <div class="card-body employee-detail-create-body"> <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> </div> </div> <div class="float-end"> <a class="btn btn-secondary btn-submit" href="<?php echo e(route('employee.index')); ?>"><?php echo e(__('Cancel')); ?></a> <button class="btn btn-primary btn-submit ms-1" type="submit" id="submit"><?php echo e(__('Create')); ?></button> </div> </form> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script-page'); ?> <script> $('input[type="file"]').change(function(e) { var file = e.target.files[0].name; var file_name = $(this).attr('data-filename'); $('.' + file_name).append(file); }); </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('monthly.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('employee.json')); ?>', 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> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/payraty/hris/resources/views/employee/create.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings