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

Salary Slip
@can('print_payroll') @endcan {{-- @if($payrollData['payslipData']->status == \App\Enum\PayslipStatusEnum::generated->value)--}} @can('edit_payroll') @endcan {{-- @endif--}}

@csrf
{{$payrollData['payslipData']->employee_name}}
{{ $payrollData['payslipData']->employee_name }}

{{ $payrollData['payslipData']->employee_email }}

Employee Gross Salary

{{ $payrollData['payslipData']->gross_salary }}

Marital Status
{{ $payrollData['payslipData']->marital_status }}
Designation
{{ $payrollData['payslipData']->designation }}
Joining Date
{{ $payrollData['payslipData']->joining_date }}
Salary Group
{{ $payrollData['payslipData']->salary_group_name }}
Salary Cycle
{{ $payrollData['payslipData']->salary_cycle }}
Total Days
{{ $payrollData['payslipData']->total_days }}
Present
{{ $payrollData['payslipData']->present_days }}
Absent
{{ $payrollData['payslipData']->absent_days }}
Paid Leave
{{ $payrollData['payslipData']->paid_leave }}
Unpaid Leave
{{ $payrollData['payslipData']->unpaid_leave }}
Holidays
{{ $payrollData['payslipData']->holidays }}
Weekend
{{ $payrollData['payslipData']->weekends }}
Status
{{ ucfirst($payrollData['payslipData']->status) }}
Salary From
Salary To

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
Basic Salary
{{ $earning['name'] }}
Fixed Allowance
Total Earning {{ $totalEarning}}

Deduction

@php $totalDeduction = $payrollData['payslipData']->tds; @endphp @forelse($payrollData['deductions'] as $deduction) @php $totalDeduction += $deduction['amount']; @endphp @empty @endforelse
{{ $deduction['name'] }}
TDS
Total Deductions {{ $totalDeduction }}
(Total Earning - Total Deductions)
{{ $currency.' '. $payrollData['payslipData']->gross_salary - $totalDeduction }}
@if($payrollData['payslipData']->include_tada ==1)
Earning*
@endif @if($payrollData['payslipData']->include_advance_salary ==1)
Deduction*
@endif
Deduction*
((grossSalary/ total days) * absent days)
@if(isset($payrollData['payslipData']->ot_status) && $payrollData['payslipData']->ot_status == 1)
Earning*
@endif @if(isset($underTimeSetting) && $underTimeSetting->is_active == 1)
Deduction*
@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