@extends('layouts.master') @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.salary_group') }} {{ $payrollData['payslipData']->salary_group_name }}
{{ __('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') }}

@forelse($payrollData['earnings'] as $earning) @empty @endforelse @if($payrollData['payslipData']->ssf_contribution > 0) @endif
{{ __('index.basic_salary') }} status == $paidStatus) readonly @endif class="form-control w-50" step="0.1" oninput="validity.valid||(value='');" name="monthly_basic_salary" id="monthly_basic_salary" value="{{ ($payrollData['payslipData']->salary_cycle == 'weekly') ? $payrollData['payslipData']->weekly_basic_salary :$payrollData['payslipData']->monthly_basic_salary }}">
{{ $earning['name'] }} status == $paidStatus) readonly @endif step="0.1" oninput="validity.valid||(value='');" id="amount[{{$earning['salary_component_id']}}]" name="amount[{{$earning['salary_component_id']}}]" class="form-control w-50 income_amount" value="{{ $earning['amount'] }}" >
{{ __('index.fixed_allowance') }}
{{ __('index.ssf_contribution') }} status == $paidStatus) readonly @endif step="0.1" min="0" class="form-control w-50" value="{{ $payrollData['payslipData']->ssf_contribution }}">

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

@php $totalDeduction = $payrollData['payslipData']->ssf_deduction; @endphp @forelse($payrollData['deductions'] as $deduction) @php $totalDeduction += $deduction['amount']; @endphp @empty @endforelse @if($payrollData['payslipData']->ssf_deduction > 0) @endif
{{ $deduction['name'] }} status == $paidStatus) readonly @endif step="0.1" oninput="validity.valid||(value='');" name="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" step="0.1" name="ssf_deduction" id="ssf_deduction" value="{{ $payrollData['payslipData']->ssf_deduction }}">
{{ __('index.actual_salary_formula') }}
{{ $currency.' '. $payrollData['payslipData']->gross_salary - $totalDeduction }}
@if($payrollData['payslipData']->bonus > 0)
{{ $currency.' '. $payrollData['payslipData']->bonus }}
{{ __('index.taxable_salary_formula') }}
{{ $currency.' '. $payrollData['payslipData']->gross_salary + $payrollData['payslipData']->bonus - $totalDeduction }}
@endif
{{ $currency.' '.$payrollData['payslipData']->tds }}
{{ $currency.' '.$payrollData['payslipData']->gross_salary + $payrollData['payslipData']->bonus - $totalDeduction - $payrollData['payslipData']->tds }}
@if($payrollData['payslipData']->include_tada == 1)
{{ __('index.earning') }}*
status == $paidStatus) readonly @endif id="tada" step="0.1" oninput="validity.valid||(value='');" 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" step="0.1" oninput="validity.valid||(value='');" name="advance_salary" class="form-control" value="{{ $payrollData['payslipData']->advance_salary }}">
@endif
{{ __('index.deduction') }}*
{{ __('index.absent_deduction_formula') }}((grossSalary/ total days) * absent days)
status == $paidStatus) readonly @endif step="0.1" 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 step="0.1" oninput="validity.valid||(value='');" 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 step="0.1" oninput="validity.valid||(value='');" 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