@extends('layouts.master') @php $enableTaxExemption = \App\Helpers\AppHelper::enableTaxExemption(); @endphp @section('title',__('index.employee_payroll')) @section('action',__('index.payroll_edit')) @section('button')
@endsection @section('style') @endsection @section('main-content')
@include('admin.section.flash_message') @include('admin.payroll.employeeSalary.common.breadcrumb')
{{ __('index.edit_salary_slip') }}
@csrf @method('PUT')
{{ __('index.payslip') }} @if( isset($payroll['salary_cycle']) && $payroll['salary_cycle'] == 'monthly') {{__('index.for_the_month_of')}} {{ \App\Helpers\AppHelper::getMonthYear($payrollData['payslipData']->salary_from) }} @else {{ __('index.from') }} {{ \App\Helpers\AttendanceHelper::payslipDate($payrollData['payslipData']->salary_from) }} to {{ \App\Helpers\AttendanceHelper::payslipDate($payrollData['payslipData']->salary_to) }} @endif
{{ __('index.employee_name') }} {{ $payrollData['payslipData']->employee_name }} {{ __('index.joining_date') }} {{ $payrollData['payslipData']->joining_date ?? 'N/A' }}
{{ __('index.employee_id') }} {{ $payrollData['payslipData']->employee_code ?? 'N/A' }}{{ __('index.designation') }}{{ $payrollData['payslipData']->designation }}
{{ __('index.marital_status') }}{{ $payrollData['payslipData']->marital_status }}
{{ __('index.status') }}
@if($payrollData['payslipData']->status == $paidStatus) {{ ucfirst($payrollData['payslipData']->status) }} @else @endif
{{ __('index.payment_method') }}
{{ __('index.paid_on') }}

{{ __('index.earning') }}

@php if($payrollData['payslipData']->salary_cycle == 'weekly'){ $totalEarning = $payrollData['payslipData']->weekly_basic_salary+$payrollData['payslipData']->weekly_fixed_allowance; }else{ $totalEarning = $payrollData['payslipData']->monthly_basic_salary+$payrollData['payslipData']->monthly_fixed_allowance; } @endphp @forelse($payrollData['earnings'] as $earning) @php $totalEarning += $earning['amount']; @endphp @empty @endforelse @forelse($payrollData['additionalEarnings'] as $earning) @php $totalEarning += $earning['amount']; @endphp @empty @endforelse
{{ __('index.basic_salary') }}
{{ $earning['name'] }} status == $paidStatus) readonly @endif oninput="restrictNumber(this)" id="earning_amount[{{$earning['salary_component_id']}}]" name="component_amount[{{$earning['salary_component_id']}}]" class="form-control w-50 income_amount" value="{{ $earning['amount'] }}" >
{{ __('index.fixed_allowance') }}
{{ $earning['name'] }} status == $paidStatus) readonly @endif oninput="restrictNumber(this)" id="additional_earning_amount[{{$earning['salary_component_id']}}]" name="additional_component_amount[{{$earning['salary_component_id']}}]" class="form-control w-50 additional_income_amount" value="{{ $earning['amount'] }}">

{{ __('index.deduction') }}

@php $totalDeduction = $payrollData['payslipData']->ssf_deduction + $payrollData['payslipData']->pf_deduction; @endphp @forelse($payrollData['deductions'] as $deduction) @php $totalDeduction += $deduction['amount']; @endphp @empty @endforelse @if($payrollData['payslipData']->ssf_deduction > 0) @endif @if($payrollData['payslipData']->pf_deduction > 0) @endif @forelse($payrollData['additionalDeductions'] as $deduction) @php $totalDeduction += $deduction['amount']; @endphp @empty @endforelse
{{ $deduction['name'] }} status == $paidStatus) readonly @endif oninput="restrictNumber(this)" name="component_amount[{{$deduction['salary_component_id']}}]" id="deduction_amount[{{$deduction['salary_component_id']}}]" class="form-control w-50 deduction_amount" value="{{ $deduction['amount'] }}" >
{{ __('index.ssf_deduction') }} status == $paidStatus) readonly @endif class="form-control w-50" oninput="restrictNumber(this)" name="ssf_deduction" id="ssf_deduction" value="{{ $payrollData['payslipData']->ssf_deduction }}">
{{ __('index.pf_deduction') }} status == $paidStatus) readonly @endif class="form-control w-50" oninput="restrictNumber(this)" name="pf_deduction" id="pf_deduction" value="{{ $payrollData['payslipData']->pf_deduction }}">
{{ $deduction['name'] }} status == $paidStatus) readonly @endif oninput="restrictNumber(this)" name="additional_component_amount[{{$deduction['salary_component_id']}}]" id="additional_deduction_amount[{{$deduction['salary_component_id']}}]" class="form-control w-50 additional_deduction_amount" value="{{ $deduction['amount'] }}">
{{ __('index.actual_salary_formula') }}
{{ $currency.' '. $totalEarning - $totalDeduction }}
@if($payrollData['payslipData']->bonus > 0)
{{ $currency.' '. $payrollData['payslipData']->bonus }}
{{ __('index.taxable_salary_formula') }}
{{ $currency.' '. $totalEarning + $payrollData['payslipData']->bonus - $totalDeduction }}
@endif
{{ $currency.' '.$payrollData['payslipData']->tds }}
{{ $currency.' '.$totalEarning + $payrollData['payslipData']->bonus - $totalDeduction - $payrollData['payslipData']->tds }}
@if($payrollData['payslipData']->include_tada == 1)
{{ __('index.earning') }}*
status == $paidStatus) readonly @endif id="tada" oninput="restrictNumber(this)" name="tada" value="{{ $payrollData['payslipData']->tada }}" class="form-control">
@endif @if($payrollData['payslipData']->include_advance_salary == 1)
{{ __('index.deduction') }}*
status == $paidStatus) readonly @endif id="advanceSalary" oninput="restrictNumber(this)" name="advance_salary" class="form-control" value="{{ $payrollData['payslipData']->advance_salary }}">
@endif
{{ __('index.deduction') }}*
@if($payrollData['payslipData']->salary_cycle == 'monthly') {{ __('index.absent_deduction_formula') }} @else {{ __('index.weekly_absent_deduction_formula') }} @endif
status == $paidStatus) readonly @endif name="absent_deduction" class="form-control" id="absentDeduction" value="{{ $payrollData['payslipData']->absent_deduction }}">
@if(isset($payrollData['payslipData']->ot_status) && $payrollData['payslipData']->ot_status == 1)
{{ __('index.earning') }}*
status == $paidStatus) readonly @endif oninput="restrictNumber(this)" id="overtime" name="overtime" value="{{ $payrollData['payslipData']->overtime }}" class="form-control">
@endif @if(isset($underTimeSetting) && $underTimeSetting->is_active == 1)
{{ __('index.deduction') }}*
status == $paidStatus) readonly @endif oninput="restrictNumber(this)" id="undertime" name="undertime" value="{{ $payrollData['payslipData']->undertime }}" class="form-control">
@endif

{{ __('index.net_salary') }} : {{ $currency }} {{ $payrollData['payslipData']->net_salary }}

{{ __('index.net_salary_formula') }}
@endsection @section('scripts') @include('admin.payroll.employeeSalary.common.scripts') @endsection