[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 831b573d0410d3c9f4cf14e0eba3de06.php
<?php $__env->startSection('content'); ?> <form method="post" class="validate" autocomplete="off" action="<?php echo e(route('salary_scales.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-10 offset-lg-1"> <div class="card"> <div class="card-header"> <span class="panel-title"><?php echo e(_lang('Add Salary Scale')); ?></span> </div> <div class="card-body"> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Department')); ?></label> <select class="form-control select2 auto-select" data-selected="<?php echo e(old('department_id')); ?>" name="department_id" id="department_id" required> <option value=""><?php echo e(_lang('Select One')); ?></option> <?php $__currentLoopData = App\Models\Department::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($department->id); ?>"><?php echo e($department->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Designation')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e(old('designation_id')); ?>" name="designation_id" id="designation_id" required> <option value=""><?php echo e(_lang('Select One')); ?></option> </select> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Grade Number')); ?></label> <input type="number" class="form-control" name="grade_number" value="<?php echo e(old('grade_number')); ?>" required> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Basic Salary')); ?></label> <input type="text" class="form-control float-field" name="basic_salary" value="<?php echo e(old('basic_salary')); ?>" required> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Full Day Absence Fine')); ?></label> <input type="text" class="form-control float-field" name="full_day_absence_fine" value="<?php echo e(old('full_day_absence_fine', 0)); ?>" required> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Half Day Absence Fine')); ?></label> <input type="text" class="form-control float-field" name="half_day_absence_fine" value="<?php echo e(old('half_day_absence_fine', 0)); ?>" required> </div> </div> <div class="col-lg-6 mt-4"> <div class="card"> <div class="card-header d-flex justify-content-between"> <span class="panel-title text-success font-weight-bold"><?php echo e(_lang('Allowances')); ?></span> <button type="button" class="btn btn-outline-success btn-xs" id="add-allowances"><i class="fas fa-plus"></i></button> </div> <div class="card-body"> <table class="table table-bordered" id="allowances"> <thead class="bg-white"> <th class="text-dark"><?php echo e(_lang('Name')); ?></th> <th class="text-dark"><?php echo e(_lang('Amount')); ?></th> <th class="text-dark text-center"><?php echo e(_lang('Action')); ?></th> </thead> <tbody> <tr> <td> <input type="text" class="form-control" name="allowances[name][]" placeholder="<?php echo e(_lang('Name')); ?>" required> </td> <td><input type="text" class="form-control float-amount" name="allowances[amount][]" placeholder="<?php echo e(_lang('Amount')); ?>" required></td> <td class="text-center"><button class="btn btn-danger btn-xs remove-item"><i class="far fa-trash-alt"></i></button></td> </tr> </tbody> </table> </div> </div> </div> <div class="col-lg-6 mt-4"> <div class="card"> <div class="card-header d-flex justify-content-between"> <span class="panel-title text-danger font-weight-bold"><?php echo e(_lang('Deductions')); ?></span> <button type="button" class="btn btn-outline-danger btn-xs" id="add-deductions"><i class="fas fa-plus"></i></button> </div> <div class="card-body"> <table class="table table-bordered" id="deductions"> <thead class="bg-white"> <th class="text-dark"><?php echo e(_lang('Name')); ?></th> <th class="text-dark"><?php echo e(_lang('Amount')); ?></th> <th class="text-dark text-center"><?php echo e(_lang('Action')); ?></th> </thead> <tbody> <tr> <td> <input type="text" class="form-control" name="deductions[name][]" placeholder="<?php echo e(_lang('Name')); ?>" required> </td> <td><input type="text" class="form-control float-amount" name="deductions[amount][]" placeholder="<?php echo e(_lang('Amount')); ?>" required></td> <td class="text-center"><button class="btn btn-danger btn-xs remove-item"><i class="far fa-trash-alt"></i></button></td> </tr> </tbody> </table> </div> </div> </div> <div class="col-lg-12 mt-2"> <div class="form-group"> <button type="submit" class="btn btn-primary"><i class="ti-check-box mr-2"></i> <?php echo e(_lang('Save')); ?></button> </div> </div> </div> </div> </div> </div> </div> </form> <?php $__env->stopSection(); ?> <?php $__env->startSection('js-script'); ?> <script> (function($) { "use strict"; $(document).on('click', '#add-allowances', function(){ $("#allowances tbody").append(`<tr> <td> <input type="text" class="form-control" name="allowances[name][]" placeholder="<?php echo e(_lang('Name')); ?>" required> </td> <td><input type="text" class="form-control float-amount" name="allowances[amount][]" placeholder="<?php echo e(_lang('Amount')); ?>" required></td> <td class="text-center"><button class="btn btn-danger btn-xs remove-item"><i class="far fa-trash-alt"></i></button></td> </tr>`); }); $(document).on('click', '#add-deductions', function(){ $("#deductions tbody").append(`<tr> <td> <input type="text" class="form-control" name="deductions[name][]" placeholder="<?php echo e(_lang('Name')); ?>" required> </td> <td><input type="text" class="form-control float-amount" name="deductions[amount][]" placeholder="<?php echo e(_lang('Amount')); ?>" required></td> <td class="text-center"><button class="btn btn-danger btn-xs remove-item"><i class="far fa-trash-alt"></i></button></td> </tr>`); }); $(document).on('click', '.remove-item', function(){ $(this).parent().parent().remove(); }); $(document).on('change','#department_id', function(){ var department_id = $(this).val(); $.ajax({ url: _url + "/user/designations/get_designations/" + department_id, beforeSend: function(){ $("#preloader").fadeIn(); },success: function(data){ var json = JSON.parse(JSON.stringify(data)); $('#designation_id option:not(:first)').remove(); $(json).each(function( index, element ) { $('#designation_id').append(new Option(element['name'], element['id'])); }); $("#preloader").fadeOut(); } }); }); })(jQuery); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eliosofonline/acc.eliosof.com/resources/views/backend/user/salary_scale/create.blade.php ENDPATH**/ ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.97 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002