@php $periodLabel = date('M Y', mktime(0, 0, 0, (int) $payrollsync->month, 1, (int) $payrollsync->year)); $formatAmount = function ($amount, $prefix = '') { return $prefix . number_format((float) $amount, 2, '.', ','); }; $employeeDetails = [ ['label' => 'Employee Name', 'value' => $employeesinfo->name], ['label' => 'Designation', 'value' => $employeesinfo?->designation?->name], ['label' => 'Department', 'value' => $employeesinfo?->department?->name], ['label' => 'Employee Code', 'value' => $employeesinfo?->employee_code], ['label' => "Father's Name", 'value' => $employeesinfo?->father_name], ['label' => 'Date of Joining', 'value' => $employeesinfo?->date_of_joining], ['label' => 'Group DOJ', 'value' => $employeesinfo?->group_joining_date], ['label' => 'Bank A/C No.', 'value' => $employeesinfo?->bank_account_no], ['label' => 'Aadhar Number', 'value' => $employeesinfo?->aadhar_number], ['label' => 'PAN No.', 'value' => $employeesinfo?->pan_no], ['label' => 'UAN No.', 'value' => $employeesinfo?->uan_number], ['label' => 'ESI A/C No.', 'value' => $employeesinfo?->esic_no], ]; $attendanceDetails = [ ['label' => 'CL Days', 'value' => null], ['label' => 'EL Days', 'value' => null], ['label' => 'Pay Days', 'value' => $payrollsync->total_paid_days], ['label' => 'W. Off', 'value' => $payrollsync->week_offs], ['label' => 'Holidays', 'value' => $payrollsync->holidays], ]; $earnings = $earninglist->values(); $deductions = $deductionlist->values(); $rowCount = max($earnings->count(), $deductions->count()); $isPdf = $isPdf ?? false; $bodyFont = $isPdf ? "'DejaVu Sans', sans-serif" : "'Inter', sans-serif"; $headingFont = $isPdf ? "'DejaVu Sans', sans-serif" : "'Plus Jakarta Sans', sans-serif"; $currencySymbol = $isPdf ? 'Rs.' : '₹'; @endphp
|
{{$organization->name}}
|
Pay Slip — {{$periodLabel}}
|
|
Document Type
Monthly Pay Slip
|
Period
{{$periodLabel}}
|
Currency
INR ({{ $currencySymbol }})
|
|
{{$detail['label']}}
{{$detail['value']}}
|
@endforeach
|
{{$detail['label']}}
@if(!is_null($detail['value']))
{{ $detail['value'] }}
@elseif($isPdf)
–
@endif
|
@endforeach
| # | Earnings | Rate ({{ $currencySymbol }}) | Pay ({{ $currencySymbol }}) | # | Deductions | Rate ({{ $currencySymbol }}) | Pay ({{ $currencySymbol }}) | |
|---|---|---|---|---|---|---|---|---|
| {{ $earning ? $i + 1 : '' }} | {{ $earning->type_name ?? '' }} | {{ $earning ? $formatAmount($earning->actual_salary) : '' }} | {{ $earning ? $formatAmount($earning->calculate_salary) : '' }} | {{ $deduction ? $i + 1 : '' }} | {{ $deduction->type_name ?? '' }} | {{ $deduction ? $formatAmount($deduction->actual_salary) : '' }} | {{ $deduction ? $formatAmount($deduction->calculate_salary) : '' }} | |
| Total Earnings | {{ $formatAmount($payrollsync->total_earning) }} | Total Deductions | {{ $formatAmount($payrollsync->total_deduction) }} | |||||
| Net Salary {{ $currencySymbol }} {{ $formatAmount($payrollsync->net_salary) }} |