@extends('layouts.master') @section('title','Employee Payroll Generate Increment') @section('action','Payroll Create') @section('button')
@endsection @section('style') @endsection @section('main-content')
@include('admin.section.flash_message') @include('admin.payroll.employeeSalary.common.breadcrumb')

Edit Salary Slip

@csrf @method('PUT')
Payslip @if( isset($payroll['salary_cycle']) && $payroll['salary_cycle'] == 'monthly') for the month of {{ \App\Helpers\AppHelper::getMonthYear($payrollData['payslipData']->salary_from) }} @else from {{ \App\Helpers\AttendanceHelper::payslipDate($payrollData['payslipData']->salary_from) }} to {{ \App\Helpers\AttendanceHelper::payslipDate($payrollData['payslipData']->salary_to) }} @endif
Employee Name {{ $payrollData['payslipData']->employee_name }} Joining Date {{ $payrollData['payslipData']->joining_date ?? 'N/A' }}
Employee ID {{ $payrollData['payslipData']->employee_code ?? 'N/A' }} Salary Group {{ $payrollData['payslipData']->salary_group_name }}
Designation{{ $payrollData['payslipData']->designation }} Marital Status{{ $payrollData['payslipData']->marital_status }}
Status
@if($payrollData['payslipData']->status == $paidStatus) {{ ucfirst($payrollData['payslipData']->status) }} @else @endif
Payment Method
Paid On

Earning

@forelse($payrollData['earnings'] as $earning) @empty @endforelse
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'] }}" >
Fixed Allowance

Deduction

@php $totalDeduction = $payrollData['payslipData']->tds; @endphp @forelse($payrollData['deductions'] as $deduction) @php $totalDeduction += $deduction['amount']; @endphp @empty @endforelse
{{ $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'] }}" >
TDS status == $paidStatus) readonly @endif class="form-control w-50" step="0.1" name="tds" id="tds" value="{{ $payrollData['payslipData']->tds }}">
(Total Earning - Total Deductions)
{{ $payrollData['payslipData']->gross_salary - $totalDeduction }}
@if($payrollData['payslipData']->include_tada == 1)
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)
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
Deduction*
((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)
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)
Deduction*
status == $paidStatus) readonly @endif step="0.1" oninput="validity.valid||(value='');" id="undertime" name="undertime" value="{{ $payrollData['payslipData']->undertime }}" class="form-control">
@endif

Net Salary : {{ $currency }}{{ $payrollData['payslipData']->net_salary }}

Net Salary = (Actual Salary - Advance Salary + TADA)
@endsection @section('scripts') @include('admin.payroll.employeeSalary.common.scripts') @endsection