|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/erp.theinteractive.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('page-title'); ?>
<?php echo e(__('Employee Set Salary')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('breadcrumb'); ?>
<li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li>
<li class="breadcrumb-item"><a href="<?php echo e(route('employee.index')); ?>"><?php echo e(__('Employee')); ?></a></li>
<li class="breadcrumb-item"><?php echo e(__('Employee Set Salary')); ?></li>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php if(!empty($employee)): ?>
<div class="row">
<div class="col-12">
<div class="row">
<div class="col-md-6">
<div class="card min-height-253">
<div class="card-header">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Employee Salary')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create set salary')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('employee.basic.salary',$employee->id)); ?>" data-size="md" data-ajax-popup="true" data-title="<?php echo e(__('Set Basic Sallary')); ?>" data-toggle="tooltip" data-original-title="<?php echo e(__('Basic Salary')); ?>" class="btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="project-info d-flex text-sm">
<div class="project-info-inner mr-3 col-4">
<b class="m-0"> <?php echo e(__('Payslip Type')); ?> </b>
<div class="project-amnt pt-1"><?php if(!empty($employee->salaryType)): ?><?php echo e($employee->salaryType->name); ?><?php else: ?> -- <?php endif; ?></div>
</div>
<div class="project-info-inner mr-3 col-4">
<b class="m-0"> <?php echo e(__('Salary')); ?> </b>
<div class="project-amnt pt-1"><?php if(!empty($employee->salary)): ?><?php echo e($employee->salary); ?><?php else: ?> -- <?php endif; ?></div>
</div>
<div class="project-info-inner mr-3 col-4">
<b class="m-0"> <?php echo e(__('Account')); ?> </b>
<div class="project-amnt pt-1"><?php if(!empty($employee->bankAccount)): ?><?php echo e($employee->bankAccount->bank_name); ?><?php else: ?> -- <?php endif; ?></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card min-height-253">
<div class="card-header ">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Allowance')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create allowance')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('allowances.create',$employee->id)); ?>" data-size="md" data-ajax-popup="true" data-title="<?php echo e(__('Create Allowance')); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-original-title="<?php echo e(__('Create Allowance')); ?>" class="apply-btn btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="table-responsive">
<?php if(!$allowances->isEmpty()): ?>
<table class="table">
<thead>
<tr>
<th><?php echo e(__('Employee Name')); ?></th>
<th><?php echo e(__('Allownace Option')); ?></th>
<th><?php echo e(__('Title')); ?></th>
<th><?php echo e(__('Type')); ?></th>
<th><?php echo e(__('Amount')); ?></th>
<?php if(\Auth::user()->type != 'Employee'): ?>
<th><?php echo e(__('Action')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $allowances; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $allowance): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($employee->name); ?></td>
<td><?php echo e(!empty($allowance->allowanceOption)?$allowance->allowanceOption->name:''); ?></td>
<td><?php echo e($allowance->title); ?></td>
<td><?php echo e(ucfirst ($allowance->type)); ?></td>
<?php if( $allowance->type == 'fixed'): ?>
<td><?php echo e(\Auth::user()->priceFormat($allowance->amount)); ?></td>
<?php else: ?>
<td><?php echo e(($allowance->amount)); ?>% ($<?php echo e($allowance->tota_allow); ?>)</td>
<?php endif; ?>
<?php if(\Auth::user()->type != 'Employee'): ?>
<td class="">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit allowance')): ?>
<div class="action-btn bg-primary ms-2">
<a href="#" data-url="<?php echo e(URL::to('allowance/'.$allowance->id.'/edit')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit Allowance')); ?>" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Edit')); ?>" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a>
</div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete allowance')): ?>
<div class="action-btn bg-danger ms-2">
<?php echo Form::open(['method' => 'DELETE', 'route' => ['allowance.destroy', $allowance->id],'id'=>'allowance-delete-form-'.$allowance->id]); ?>
<a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('allowance-delete-form-<?php echo e($allowance->id); ?>').submit();"><i class="ti ti-trash text-white"></i></a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<div class="mt-2 text-center">
No Allowance Found!
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card min-height-253">
<div class="card-header">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Commission')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create commission')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('commissions.create',$employee->id)); ?>" data-size="md" data-ajax-popup="true" data-title="<?php echo e(__('Create Commission')); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-original-title="<?php echo e(__('Create Commission')); ?>" class="apply-btn btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="table-responsive">
<?php if(!$commissions->isEmpty()): ?>
<table class="table">
<thead>
<tr>
<th><?php echo e(__('Employee Name')); ?></th>
<th><?php echo e(__('Title')); ?></th>
<th><?php echo e(__('Type')); ?></th>
<th><?php echo e(__('Amount')); ?></th>
<?php if(\Auth::user()->type != 'Employee'): ?>
<th><?php echo e(__('Action')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $commissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $commission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($employee->name); ?></td>
<td><?php echo e($commission->title); ?></td>
<td><?php echo e(ucfirst ($commission ->type)); ?></td>
<?php if($commission->type == 'fixed'): ?>
<td><?php echo e(\Auth::user()->priceFormat( $commission->amount)); ?></td>
<?php else: ?>
<td><?php echo e(( $commission->amount)); ?>% ($<?php echo e($commission->tota_allow); ?>)</td>
<?php endif; ?>
<?php if(\Auth::user()->type != 'Employee'): ?>
<td class="">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit commission')): ?>
<div class="action-btn bg-primary ms-2">
<a href="#" data-url="<?php echo e(URL::to('commission/'.$commission->id.'/edit')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit Commission')); ?>" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Edit')); ?>" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a>
</div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete commission')): ?>
<div class="action-btn bg-danger ms-2">
<?php echo Form::open(['method' => 'DELETE', 'route' => ['commission.destroy', $commission->id],'id'=>'commission-delete-form-'.$commission->id]); ?>
<a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('commission-delete-form-<?php echo e($commission->id); ?>').submit();"><i class="ti ti-trash text-white"></i></a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<div class="mt-2 text-center">
No Commission Found!
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card min-height-253">
<div class="card-header">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Loan')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create loan')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('loans.create',$employee->id)); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Create Loan')); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-original-title="<?php echo e(__('Create Loan')); ?>" class="apply-btn btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="table-responsive">
<?php if(!$loans->isEmpty()): ?>
<table class="table table-striped mb-0">
<thead>
<tr>
<th><?php echo e(__('Employee')); ?></th>
<th><?php echo e(__('Loan Options')); ?></th>
<th><?php echo e(__('Title')); ?></th>
<th><?php echo e(__('Type')); ?></th>
<th><?php echo e(__('Loan Amount')); ?></th>
<?php if(\Auth::user()->type != 'Employee'): ?>
<th ><?php echo e(__('Action')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $loans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($employee->name); ?></td>
<td><?php echo e(!empty( $loan->loanOption)? $loan->loanOption->name:''); ?></td>
<td><?php echo e($loan->title); ?></td>
<td><?php echo e(ucfirst ($loan->type)); ?></td>
<?php if($loan->type == 'fixed'): ?>
<td><?php echo e(\Auth::user()->priceFormat($loan->amount)); ?></td>
<?php else: ?>
<td><?php echo e(($loan->amount)); ?>% ($<?php echo e($loan->tota_allow); ?>)</td>
<?php endif; ?>
<?php if(\Auth::user()->type != 'Employee'): ?>
<td class="">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit loan')): ?>
<div class="action-btn bg-primary ms-2">
<a href="#" data-url="<?php echo e(URL::to('loan/'.$loan->id.'/edit')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit Loan')); ?>" class="mx-3 btn btn-sm align-items-center" title="<?php echo e(__('Edit')); ?>" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a>
</div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete loan')): ?>
<div class="action-btn bg-danger ms-2">
<?php echo Form::open(['method' => 'DELETE', 'route' => ['loan.destroy', $loan->id],'id'=>'loan-delete-form-'.$loan->id]); ?>
<a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('loan-delete-form-<?php echo e($loan->id); ?>').submit();"><i class="ti ti-trash text-white"></i></a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<div class="mt-2 text-center">
No Loan Data Found!
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card min-height-253">
<div class="card-header">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Saturation Deduction')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create saturation deduction')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('saturationdeductions.create',$employee->id)); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Create Saturation Deduction')); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-original-title="<?php echo e(__('Create Saturation Deduction')); ?>" class="apply-btn btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="table-responsive">
<?php if(!$saturationdeductions->isEmpty()): ?>
<table class="table table-striped mb-0">
<thead>
<tr>
<th><?php echo e(__('Employee Name')); ?></th>
<th><?php echo e(__('Deduction Option')); ?></th>
<th><?php echo e(__('Title')); ?></th>
<th><?php echo e(__('Type')); ?></th>
<th><?php echo e(__('Amount')); ?></th>
<?php if(\Auth::user()->type != 'Employee'): ?>
<th><?php echo e(__('Action')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $saturationdeductions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $saturationdeduction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($employee->name); ?></td>
<td><?php echo e(!empty($saturationdeduction->deductionOption)?$saturationdeduction->deductionOption->name:''); ?></td>
<td><?php echo e($saturationdeduction->title); ?></td>
<td><?php echo e(ucfirst ($saturationdeduction->type)); ?></td>
<?php if( $saturationdeduction->type == 'fixed'): ?>
<td><?php echo e(\Auth::user()->priceFormat( $saturationdeduction->amount)); ?></td>
<?php else: ?>
<td><?php echo e(( $saturationdeduction->amount)); ?>% ($<?php echo e($saturationdeduction->tota_allow); ?>)</td>
<?php endif; ?>
<?php if(\Auth::user()->type != 'Employee'): ?>
<td class="">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit saturation deduction')): ?>
<div class="action-btn bg-primary ms-2">
<a href="#" data-url="<?php echo e(URL::to('saturationdeduction/'.$saturationdeduction->id.'/edit')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit Saturation Deduction')); ?>" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Edit')); ?>" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a>
</div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete saturation deduction')): ?>
<div class="action-btn bg-danger ms-2">
<?php echo Form::open(['method' => 'DELETE', 'route' => ['saturationdeduction.destroy', $saturationdeduction->id],'id'=>'deduction-delete-form-'.$saturationdeduction->id]); ?>
<a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('deduction-delete-form-<?php echo e($saturationdeduction->id); ?>').submit();"><i class="ti ti-trash text-white"></i></a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<div class="mt-2 text-center">
No Saturation Deduction Found!
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card min-height-253">
<div class="card-header">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Other Payment')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create other payment')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('otherpayments.create',$employee->id)); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Create Other Payment')); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>" data-original-title="<?php echo e(__('Create Other Payment')); ?>" class="apply-btn btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="table-responsive">
<?php if(!$otherpayments->isEmpty()): ?>
<table class="table table-striped mb-0">
<thead>
<tr>
<th><?php echo e(__('Employee')); ?></th>
<th><?php echo e(__('Title')); ?></th>
<th><?php echo e(__('Type')); ?></th>
<th><?php echo e(__('Amount')); ?></th>
<?php if(\Auth::user()->type != 'Employee'): ?>
<th><?php echo e(__('Action')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $otherpayments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $otherpayment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($employee->name); ?></td>
<td><?php echo e($otherpayment->title); ?></td>
<td><?php echo e(ucfirst ($otherpayment->type)); ?></td>
<?php if($otherpayment->type == 'fixed'): ?>
<td><?php echo e(\Auth::user()->priceFormat($otherpayment->amount)); ?></td>
<?php else: ?>
<td><?php echo e(($otherpayment->amount)); ?>% ($<?php echo e($otherpayment->tota_allow); ?>)</td>
<?php endif; ?>
<?php if(\Auth::user()->type != 'Employee'): ?>
<td class="">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit other payment')): ?>
<div class="action-btn bg-primary ms-2">
<a href="#" data-url="<?php echo e(URL::to('otherpayment/'.$otherpayment->id.'/edit')); ?>" data-size="lg" data-ajax-popup="true" title="<?php echo e(__('Edit')); ?>" data-title="<?php echo e(__('Edit Other Payment')); ?>" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a>
</div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete other payment')): ?>
<div class="action-btn bg-danger ms-2">
<?php echo Form::open(['method' => 'DELETE', 'route' => ['otherpayment.destroy', $otherpayment->id],'id'=>'payment-delete-form-'.$otherpayment->id]); ?>
<a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('payment-delete-form-<?php echo e($otherpayment->id); ?>').submit();"><i class="ti ti-trash text-white"></i></a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<div class="mt-2 text-center">
No Other Payment Data Found!
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col">
<h6 class="mb-0"><?php echo e(__('Overtime')); ?></h6>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create overtime')): ?>
<div class="col text-end">
<a href="#" data-url="<?php echo e(route('overtimes.create',$employee->id)); ?>" data-size="md" data-ajax-popup="true" data-title="<?php echo e(__('Create Overtime')); ?>" data-toggle="tooltip" data-original-title="<?php echo e(__('Create Overtime')); ?>" class="apply-btn btn btn-sm btn-primary">
<i class="ti ti-plus"></i>
</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="card-body table-border-style full-card">
<div class="table-responsive">
<?php if(!$overtimes->isEmpty()): ?>
<table class="table table-striped mb-0">
<thead>
<tr>
<th><?php echo e(__('Employee Name')); ?></th>
<th><?php echo e(__('Overtime Title')); ?></th>
<th><?php echo e(__('Number of days')); ?></th>
<th><?php echo e(__('Hours')); ?></th>
<th><?php echo e(__('Rate')); ?></th>
<?php if(\Auth::user()->type != 'Employee'): ?>
<th><?php echo e(__('Action')); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $overtimes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $overtime): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($employee->name); ?></td>
<td><?php echo e($overtime->title); ?></td>
<td><?php echo e($overtime->number_of_days); ?></td>
<td><?php echo e($overtime->hours); ?></td>
<td><?php echo e(\Auth::user()->priceFormat($overtime->rate)); ?></td>
<?php if(\Auth::user()->type != 'Employee'): ?>
<td class="">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit overtime')): ?>
<div class="action-btn bg-primary ms-2">
<a href="#" data-url="<?php echo e(URL::to('overtime/'.$overtime->id.'/edit')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit OverTime')); ?>" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Edit')); ?>" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil text-white"></i></a>
</div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete overtime')): ?>
<div class="action-btn bg-danger ms-2">
<?php echo Form::open(['method' => 'DELETE', 'route' => ['overtime.destroy', $overtime->id],'id'=>'overtime-delete-form-'.$overtime->id]); ?>
<a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?').'|'.__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('overtime-delete-form-<?php echo e($overtime->id); ?>').submit();"><i class="ti ti-trash text-white"></i></a>
<?php echo Form::close(); ?>
</div>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<div class="mt-2 text-center">
No Overtime Data Found!
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script-page'); ?>
<?php if(!empty($employee)): ?>
<script type="text/javascript">
$(document).on('change','.amount_type', function() {
var val = $(this).val();
var label_text = 'Amount';
if(val == 'percentage')
{
var label_text = 'Percentage';
}
$('.amount_label').html(label_text);
});
$(document).ready(function () {
var d_id = $('#department_id').val();
var designation_id = '<?php echo e($employee->designation_id); ?>';
getDesignation(d_id);
$("#allowance-dataTable").dataTable({
"columnDefs": [
{"sortable": false, "targets": [1]}
]
});
$("#commission-dataTable").dataTable({
"columnDefs": [
{"sortable": false, "targets": [1]}
]
});
$("#loan-dataTable").dataTable({
"columnDefs": [
{"sortable": false, "targets": [1]}
]
});
$("#saturation-deduction-dataTable").dataTable({
"columnDefs": [
{"sortable": false, "targets": [1]}
]
});
$("#other-payment-dataTable").dataTable({
"columnDefs": [
{"sortable": false, "targets": [1]}
]
});
$("#overtime-dataTable").dataTable({
"columnDefs": [
{"sortable": false, "targets": [1]}
]
});
});
$(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 any Designation')); ?></option>');
$.each(data, function (key, value) {
var select = '';
if (key == '<?php echo e($employee->designation_id); ?>') {
select = 'selected';
}
$('#designation_id').append('<option value="' + key + '" ' + select + '>' + value + '</option>');
});
}
});
}
</script>
<?php endif; ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/erp.theinteractive.co.in/resources/views/setsalary/employee_salary.blade.php ENDPATH**/ ?>