@lang('payroll::modules.payroll.salarySlip')

@lang('payroll::modules.payroll.salarySlipHeading') {{ $salarySlip->duration }} @if(!is_null($salarySlip->payroll_cycle)) ({{ __('payroll::app.menu.'.$salarySlip->payroll_cycle->cycle) }}) @endif

@lang('app.employee') @lang('app.name')

@lang('app.status')

@if ($salarySlip->status == 'generated') @elseif ($salarySlip->status == 'review') @elseif ($salarySlip->status == 'locked') @elseif ($salarySlip->status == 'paid') @endif

@lang('payroll::modules.payroll.employeeNetPay')

{{ currency_format($salarySlip->net_salary, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}

@lang('payroll::modules.payroll.earning') @lang('app.amount') @lang('payroll::modules.payroll.basicPay') {{ currency_format($basicSalary, ($currency->currency ? $currency->currency->id : company()->currency->id )) }} @foreach ($earnings as $key => $item) @if($key == 'Time Logs') {{ ucfirst($key) }} @if(array_key_exists("Total Hours",$earnings)) ( @lang('payroll::modules.payroll.totalHours') {{$earnings['Total Hours']}} ) @endif {{ currency_format($item, ($currency->currency ? $currency->currency->id : company()->currency->id )) }} @elseif($key != 'Total Hours') {{ ucfirst($key) }} {{ currency_format($item, ($currency->currency ? $currency->currency->id : company()->currency->id )) }} @endif @endforeach @forelse ($earningsExtra as $key=>$item) {{ ucfirst($key) }} {{ currency_format($item, ($currency->currency ? $currency->currency->id : company()->currency->id )) }} @endforeach @lang('payroll::modules.payroll.fixedAllowance') @php $fixedAllow = ($salarySlip->fixed_allowance > 0) ? $salarySlip->fixed_allowance : $fixedAllowance; @endphp {{ currency_format($fixedAllow, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}
@lang('payroll::modules.payroll.deduction') @lang('app.amount') @foreach ($deductions as $key => $item) {{ ucfirst($key) }} {{ currency_format($item, ($currency->currency ? $currency->currency->id : company()->currency->id ) ) }} @endforeach @foreach ($deductionsExtra as $key => $item) {{ ucfirst($key) }} {{ currency_format($item, ($currency->currency ? $currency->currency->id : company()->currency->id )) }} @endforeach
@lang('payroll::modules.payroll.grossEarning')
{{ currency_format($salarySlip->gross_salary, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}
@lang('payroll::modules.payroll.totalDeductions')
@php $allDeduction = array_sum($deductions) + array_sum($deductionsExtra); @endphp
{{ currency_format($allDeduction, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}
@lang('payroll::modules.payroll.reimbursement') @lang('app.amount') @lang('payroll::modules.payroll.expenseClaims') {{ currency_format($salarySlip->expense_claims, ($currency->currency ? $currency->currency->id : company()->currency->id )) }} @lang('app.total') @lang('payroll::modules.payroll.reimbursement') {{ currency_format($salarySlip->expense_claims, ($currency->currency ? $currency->currency->id : company()->currency->id )) }}

@lang('payroll::modules.payroll.netSalary'): {{ currency_format(sprintf('%0.2f', $salarySlip->net_salary), ($currency->currency ? $currency->currency->id : company()->currency->id )) }}

@lang('payroll::modules.payroll.netSalary') = (@lang('payroll::modules.payroll.grossEarning') - @lang('payroll::modules.payroll.totalDeductions') + @lang('payroll::modules.payroll.reimbursement'))