@if(isset($fields) && !is_null($fields)) @php $numberCheck = 0; @endphp @foreach($fields as $key => $field) @if($numberCheck == 2) @php $numberCheck = 0;@endphp @endif @if(($numberCheck == 0 && $key != 0) || sizeof($fields) == $key+1 ) @endif @php $numberCheck++ @endphp @endforeach @endif
@lang('payroll::modules.payroll.salarySlipHeading') {{ \Carbon\Carbon::parse($salarySlip->year.'-'.$salarySlip->month.'-01')->translatedFormat('F Y') }}
@lang('modules.employees.employeeId'): {{ $salarySlip->user->employeeDetail->employee_id }} @lang('app.name'): {{ $salarySlip->user->name }} @lang("payroll::modules.payroll.salarySlipNumber"): {{ $salarySlip->id }}
@lang('app.department') : {{ (!is_null($salarySlip->user->employeeDetail->department)) ? $salarySlip->user->employeeDetail->department->team_name : '-' }} @lang('app.designation') : {{ (!is_null($salarySlip->user->employeeDetail->designation)) ? $salarySlip->user->employeeDetail->designation->name : '-' }} @lang('modules.employees.joiningDate') : {{ $salarySlip->user->employeeDetail->joining_date->translatedFormat($company->date_format) }}
{{ $field->label }}: @if( $field->type == 'text') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? '--'}} @elseif($field->type == 'password') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? '--'}} @elseif($field->type == 'number') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? '--'}} @elseif($field->type == 'textarea') {{$employeeDetail->custom_fields_data['field_'.$field->id] ?? '--'}} @elseif($field->type == 'radio') {{ !is_null($employeeDetail->custom_fields_data['field_'.$field->id]) ? $employeeDetail->custom_fields_data['field_'.$field->id] : '--' }} @elseif($field->type == 'select') {{ (!is_null($employeeDetail->custom_fields_data['field_'.$field->id]) && $employeeDetail->custom_fields_data['field_'.$field->id] != '') ? $field->values[$employeeDetail->custom_fields_data['field_'.$field->id]] : '--' }} @elseif($field->type == 'checkbox')
    @foreach($field->values as $key => $value) @if($employeeDetail->custom_fields_data['field_'.$field->id] != '' && in_array($value ,explode(', ', $employeeDetail->custom_fields_data['field_'.$field->id])))
  • {{$value}}
  • @endif @endforeach
@elseif($field->type == 'date') {{ isset($employeeDetail->custom_fields_data['field_'.$field->id])? Carbon\Carbon::parse($employeeDetail->custom_fields_data['field_'.$field->id])->translatedFormat($company->date_format): ''}} @endif
@foreach ($earnings as $key=>$item) @if($key == 'Time Logs') @elseif($key != 'Total Hours') @endif @endforeach @forelse ($earningsExtra as $key=>$item) @endforeach @if($fixedAllowance > 0) @endif
@lang('payroll::modules.payroll.earning') @lang('app.amount')
@lang('payroll::modules.payroll.basicPay') {{ currency_format($salarySlip->basic_salary, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
{{ ucfirst($key) }} @if(array_key_exists("Total Hours",$earnings)) ( @lang('payroll::modules.payroll.totalHours') {{$earnings['Total Hours']}} ) @endif {{ $item.' '.($currency->currency ? $currency->currency->currency_code : company()->currency->currency_code) }}
{{ ucfirst($key) }} {{ $item.' '.($currency->currency ? $currency->currency->currency_code : company()->currency->currency_code) }}
{{ $key }} {{ currency_format($item, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
@lang('payroll::modules.payroll.fixedAllowance') {{ currency_format($fixedAllowance, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
@foreach ($deductions as $key=>$item) @endforeach @foreach ($deductionsExtra as $key=>$item) @endforeach
@lang('payroll::modules.payroll.deduction') @lang('app.amount')
{{ $key }} {{ currency_format($item, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
{{ $key }} {{ currency_format($item, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
@lang('payroll::modules.payroll.grossEarning') {{ currency_format($salarySlip->gross_salary, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
@lang('payroll::modules.payroll.totalDeductions') {{ currency_format($salarySlip->total_deductions, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
@lang('payroll::modules.payroll.reimbursement') @lang('app.amount')
@lang('payroll::modules.payroll.expenseClaims') {{ currency_format($salarySlip->expense_claims, ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}

@lang('payroll::modules.payroll.netSalary'): {{ currency_format(sprintf('%0.2f', $salarySlip->net_salary), ($payrollSetting->currency ? $payrollSetting->currency->id : company()->currency->id), false)}} {!! htmlentities($payrollSetting->currency ? $payrollSetting->currency->currency_code : company()->currency->currency_code) !!}
@lang('payroll::modules.payroll.netSalary') = (@lang('payroll::modules.payroll.grossEarning') - @lang('payroll::modules.payroll.totalDeductions') + @lang('payroll::modules.payroll.reimbursement'))