{!! __('essentials::lang.payroll_of_employee', [ 'employee' => $payroll->transaction_for->user_full_name, 'date' => $month_name . ' ' . $year, ]) !!}

@if (!empty(Session::get('business.logo'))) Logo @endif
@if ($result['role'] != 'Admin' && !empty($result['location_business_name'])) {{ $result['location_business_name'] }} @else {{ Session::get('business.name') ?? '' }} @endif
{!! Session::get('business.business_address') ?? '' !!}

@lang('essentials::lang.payslip_for_the_month', ['month' => $month_name, 'year' => $year])
@lang('essentials::lang.employee'): {{ $payroll->transaction_for->user_full_name }}
@lang('essentials::lang.department'): {{ $department->name ?? '' }}
@lang('essentials::lang.designation'): {{ $designation->name ?? '' }}
@lang('lang_v1.primary_work_location'): @if (!empty($location)) {{ $location->name }} @else {{ __('report.all_locations') }} @endif
@if (!empty($payroll->transaction_for->id_proof_name) && !empty($payroll->transaction_for->id_proof_number)) {{ ucfirst($payroll->transaction_for->id_proof_name) }}: {{ $payroll->transaction_for->id_proof_number }}
@endif @lang('lang_v1.tax_payer_id'): {{ $bank_details['tax_payer_id'] ?? '' }}
@lang('lang_v1.bank_name'): {{ $bank_details['bank_name'] ?? '' }}
@lang('lang_v1.branch'): {{ $bank_details['branch'] ?? '' }}
@lang('lang_v1.bank_code'): {{ $bank_details['bank_code'] ?? '' }}
@lang('lang_v1.account_holder_name'): {{ $bank_details['account_holder_name'] ?? '' }}
@lang('lang_v1.bank_account_no'): {{ $bank_details['account_number'] ?? '' }}
@lang('essentials::lang.total_work_duration'): {{ (int) $total_work_duration }} @lang('essentials::lang.days_present'): {{ $days_in_a_month - $total_leaves }} @lang('essentials::lang.days_absent'): {{ $total_leaves }}
@lang('essentials::lang.allowances')
@lang('sale.amount')
@lang('essentials::lang.rate')
@lang('essentials::lang.deductions')
@lang('sale.amount')
@lang('essentials::lang.rate')
@php $total_earnings = $payroll->essentials_duration * $payroll->essentials_amount_per_unit_duration; @endphp
@lang('essentials::lang.salary')
{{ $payroll->essentials_duration * $payroll->essentials_amount_per_unit_duration }}
( {{ @num_format($payroll->essentials_duration) }} {{ $payroll->essentials_duration_unit }} * {{ @num_format($payroll->essentials_amount_per_unit_duration) }} )


@forelse($allowances['allowance_names'] as $key => $value)
{{ $value }}
{{ $allowances['allowance_amounts'][$key] }}
@if (!empty($allowances['allowance_types'][$key]) && $allowances['allowance_types'][$key] == 'percent') {{ @num_format($allowances['allowance_percents'][$key]) }}% @endif
@php $total_earnings += !empty($allowances['allowance_amounts'][$key]) ? $allowances['allowance_amounts'][$key] : 0; @endphp @empty @endforelse
@php $total_deduction = 0; @endphp @forelse($deductions['deduction_names'] as $key => $value)
{{ $value }}
{{ $deductions['deduction_amounts'][$key] }}
@if (!empty($deductions['deduction_types'][$key]) && $deductions['deduction_types'][$key] == 'percent') {{ @num_format($deductions['deduction_percents'][$key]) }}% @endif
@php $total_deduction += !empty($deductions['deduction_amounts'][$key]) ? $deductions['deduction_amounts'][$key] : 0; @endphp @empty
@lang('lang_v1.none')
@endforelse
@lang('essentials::lang.total_earnings'):
{{ $total_earnings }}
@lang('essentials::lang.total_deductions'):
{{ $total_deduction }}
{{ $total_earnings - $total_deduction }}
@lang('essentials::lang.net_pay')
@lang('essentials::lang.in_words'): {{ ucfirst($final_total_in_words) }}
{{ __('sale.payment_info') }}: @php $total_paid = 0; @endphp @forelse($payroll->payment_lines as $payment_line) @php if ($payment_line->is_return == 1) { $total_paid -= $payment_line->amount; } else { $total_paid += $payment_line->amount; } @endphp @empty @endforelse
# {{ __('messages.date') }} {{ __('purchase.ref_no') }} {{ __('sale.amount') }} {{ __('sale.payment_mode') }} {{ __('sale.payment_note') }}
{{ $loop->iteration }} {{ @format_date($payment_line->paid_on) }} {{ $payment_line->payment_ref_no }} {{ $payment_line->amount }} {{ $payment_types[$payment_line->method] }} @if ($payment_line->note) {{ ucfirst($payment_line->note) }} @else -- @endif
@lang('purchase.no_records_found')
@lang('brand.note'):
{{ $payroll->staff_note ?? '' }}