![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/storage/framework/views/ |
<?php if($type == 'allowance') { $name_col = 'payrolls['.$employee.'][allowance_names]'; $val_col = 'payrolls['.$employee.'][allowance_amounts]'; $val_class = 'allowance'; $type_col = 'payrolls['.$employee.'][allowance_types]'; $percent_col = 'payrolls['.$employee.'][allowance_percent]'; } elseif($type == 'deduction') { $name_col = 'payrolls['.$employee.'][deduction_names]'; $val_col = 'payrolls['.$employee.'][deduction_amounts]'; $val_class = 'deduction'; $type_col = 'payrolls['.$employee.'][deduction_types]'; $percent_col = 'payrolls['.$employee.'][deduction_percent]'; } $amount_type = !empty($amount_type) ? $amount_type : 'fixed'; $percent = $amount_type == 'percent' && !empty($percent) ? $percent : 0; ?> <tr> <td> <?php echo Form::text($name_col . '[]', !empty($name) ? $name : null, ['class' => 'form-control input-sm' ]);; ?> </td> <td> <?php echo Form::select($type_col . '[]', ['fixed' => __('lang_v1.fixed'), 'percent' => __('lang_v1.percentage')], $amount_type, ['class' => 'form-control input-sm amount_type' ]);; ?> <div class="input-group percent_field <?php if($amount_type != 'percent'): ?> hide <?php endif; ?>"> <?php echo Form::text($percent_col . '[]', number_format($percent, session('business.currency_precision', 2), session('currency')['decimal_separator'], session('currency')['thousand_separator']), ['class' => 'form-control input-sm input_number percent']);; ?> <span class="input-group-addon"><i class="fa fa-percent"></i></span> </div> </td> <td> <?php $readonly = $amount_type == 'percent' ? 'readonly' : ''; ?> <?php echo Form::text($val_col . '[]', !empty($value) ? number_format((float) $value, session('business.currency_precision', 2), session('currency')['decimal_separator'], session('currency')['thousand_separator']) : 0, ['class' => 'form-control input-sm value_field input_number ' . $val_class, $readonly ]);; ?> </td> <td> <?php if(!empty($add_button)): ?> <button type="button" class="btn btn-primary btn-xs <?php if($type == 'allowance'): ?> add_allowance <?php elseif($type == 'deduction'): ?> add_deduction <?php endif; ?>"> <i class="fa fa-plus"></i> <?php else: ?> <button type="button" class="btn btn-danger btn-xs remove_tr"><i class="fa fa-minus"></i></button> <?php endif; ?> </button></td> </tr><?php /**PATH /var/www/clients/client13/web23/web/Modules/Essentials/Providers/../Resources/views/payroll/allowance_and_deduction_row.blade.php ENDPATH**/ ?>