@extends('layouts.main') @section('page-title') {{ __('Employee Set Salary') }} @endsection @section('page-breadcrumb') {{ __('Employee Set Salary') }} @endsection @push('css') @endpush @section('content')
{{ __('Employee Salary') }}
@can('setsalary create') @endcan
{{ __('Payslip Type') }}
{{ !empty($employee->salary_type()) ? ($employee->salary_type()) ?? '' : '' }}
{{ __('Salary') }}
{{ currency_format_with_sym($employee->salary) }}
@can('allowance manage')
{{ __('Allowance') }}
@can('allowance create') @endcan
@if (Gate::check('allowance edit') || Gate::check('allowance delete')) @endif @foreach ($allowances as $allowance) @if ($allowance->type == 'fixed') @else @endif @if (Gate::check('allowance edit') || Gate::check('allowance delete')) @endif @endforeach
{{ __('Employee Name') }} {{ __('Allownace Option') }} {{ __('Title') }} {{ __('Type') }} {{ __('Amount') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::GetEmployeeByEmp($allowance->employee_id)) ? Modules\Hrm\Entities\Employee::GetEmployeeByEmp($allowance->employee_id)->name : '' }} {{ !empty($allowance->allowance_option()) ? $allowance->allowance_option()->name : '' }} {{ $allowance->title }} {{ ucfirst($allowance->type) }}{{ currency_format_with_sym($allowance->amount) }}{{ $allowance->amount }}% ({{ currency_format_with_sym($allowance->tota_allow) }}) @can('allowance edit') @endcan @can('allowance delete')
{{Form::open(array('route'=>array('allowance.destroy', $allowance->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endcan @can('commission manage')
{{ __('Commission') }}
@can('commission create') @endcan
@if (Gate::check('commission edit') || Gate::check('commission delete')) @endif @foreach ($commissions as $commission) @if ($commission->type == 'fixed') @else @endif @if (Gate::check('commission edit') || Gate::check('commission delete')) @endif @endforeach
{{ __('Employee Name') }} {{ __('Title') }} {{ __('Type') }} {{ __('Amount') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::GetEmployeeByEmp($commission->employee_id)) ? Modules\Hrm\Entities\Employee::GetEmployeeByEmp($commission->employee_id)->name : '' }} {{ $commission->title }} {{ ucfirst($commission->type) }}{{ currency_format_with_sym($commission->amount) }}{{ $commission->amount }}% ({{ currency_format_with_sym($commission->tota_allow) }}) @can('commission edit') @endcan @can('commission delete')
{{Form::open(array('route'=>array('commission.destroy', $commission->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endcan @can('loan manage')
{{ __('Loan') }}
@can('loan create') @endcan
@if (Gate::check('loan edit') || Gate::check('loan delete')) @endif @foreach ($loans as $loan) @if ($loan->type == 'fixed') @else @endif @if (Gate::check('loan edit') || Gate::check('loan delete')) @endif @endforeach
{{ __('Employee') }} {{ __('Loan Options') }} {{ __('Title') }} {{ __('Type') }} {{ __('Loan Amount') }} {{ __('Start Date') }} {{ __('End Date') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::GetEmployeeByEmp($loan->employee_id)) ? Modules\Hrm\Entities\Employee::GetEmployeeByEmp($loan->employee_id)->name : '' }} {{ !empty($loan->loan_option()) ? $loan->loan_option()->name : '' }} {{ $loan->title }} {{ ucfirst($loan->type) }}{{ currency_format_with_sym($loan->amount) }}{{ $loan->amount }}% ({{ currency_format_with_sym($loan->tota_allow) }}) {{ company_date_formate($loan->start_date) }} {{ company_date_formate($loan->end_date) }} @can('loan edit') @endcan @can('loan delete')
{{Form::open(array('route'=>array('loan.destroy', $loan->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endcan @can('saturation deduction manage')
{{ __('Saturation Deduction') }}
@can('saturation deduction create') @endcan
@if (Gate::check('saturation deduction edit') || Gate::check('saturation deduction delete')) @endif @foreach ($saturationdeductions as $saturationdeduction) @if ($saturationdeduction->type == 'fixed') @else @endif @if (Gate::check('saturation deduction edit') || Gate::check('saturation deduction delete')) @endif @endforeach
{{ __('Employee Name') }} {{ __('Deduction Option') }} {{ __('Title') }} {{ __('Type') }} {{ __('Amount') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::GetEmployeeByEmp($saturationdeduction->employee_id)) ? Modules\Hrm\Entities\Employee::GetEmployeeByEmp($saturationdeduction->employee_id)->name : '' }} {{ !empty($saturationdeduction->deduction_option()) ? $saturationdeduction->deduction_option()->name : '' }} {{ $saturationdeduction->title }} {{ ucfirst($saturationdeduction->type) }}{{ currency_format_with_sym($saturationdeduction->amount) }} {{ $saturationdeduction->amount }}% ({{ currency_format_with_sym($saturationdeduction->tota_allow) }}) @can('saturation deduction edit') @endcan @can('saturation deduction delete')
{{Form::open(array('route'=>array('saturationdeduction.destroy', $saturationdeduction->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endcan @can('other payment manage')
{{ __('Other Payment') }}
@can('other payment create') @endcan
@if (Gate::check('other payment edit') || Gate::check('other payment delete')) @endif @foreach ($otherpayments as $otherpayment) @if ($otherpayment->type == 'fixed') @else @endif @if (Gate::check('other payment edit') || Gate::check('other payment delete')) @endif @endforeach
{{ __('Employee') }} {{ __('Title') }} {{ __('Type') }} {{ __('Amount') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::GetEmployeeByEmp($otherpayment->employee_id)) ? Modules\Hrm\Entities\Employee::GetEmployeeByEmp($otherpayment->employee_id)->name : '' }} {{ $otherpayment->title }} {{ ucfirst($otherpayment->type) }}{{ currency_format_with_sym($otherpayment->amount) }}{{ $otherpayment->amount }}% ({{ currency_format_with_sym($otherpayment->tota_allow) }}) @can('other payment edit') @endcan @can('other payment delete')
{{Form::open(array('route'=>array('otherpayment.destroy', $otherpayment->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endcan @can('overtime manage')
{{ __('Overtime') }}
@can('overtime create') @endcan
@if (Gate::check('overtime edit') || Gate::check('overtime delete')) @endif @foreach ($overtimes as $overtime) @if (Gate::check('overtime edit') || Gate::check('overtime delete')) @endif @endforeach
{{ __('Employee Name') }} {{ __('Overtime Title') }} {{ __('Number of days') }} {{ __('Hours') }} {{ __('Rate') }}{{ __('Action') }}
{{ !empty( Modules\Hrm\Entities\Employee::GetEmployeeByEmp($overtime->employee_id)) ? Modules\Hrm\Entities\Employee::GetEmployeeByEmp($overtime->employee_id)->name : '' }} {{ $overtime->title }} {{ $overtime->number_of_days }} {{ $overtime->hours }} {{ currency_format_with_sym($overtime->rate) }} @can('overtime edit') @endcan @can('overtime delete')
{{Form::open(array('route'=>array('overtime.destroy', $overtime->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endcan
@endsection @push('scripts') @endpush